KCPOLYTEST(1)

✨ NAME ✨

kcpolytest β€” the command line interface to test the polymorphic database πŸ’–


🌸 DESCRIPTION 🌸

okay bestie, gather round 🫢 kcpolytest is the little utility you use for facility testing and performance testing of the polymorphic database. it's giving "i stress-test databases for fun" and honestly? iconic behavior. πŸ‘‘

you call it in the formats below, and here's the tea you need first: path specifies the path of a database file, and rnum specifies the number of iterations. every single mode wants those two, so keep them in your pocket πŸ’…


πŸŽ€ the formats πŸŽ€

order β€” performs in-order tests ✨

kcpolytest order [-th num] [-rnd] [-set|-get|-getw|-rem|-etc]
[-tran] [-oat|-onl|-onl|-otl|-onr] [-lv] path rnum

queue β€” performs queuing operations 🧚

kcpolytest queue [-th num] [-it num] [-rnd]
[-oat|-onl|-onl|-otl|-onr] [-lv] path rnum

wicked β€” performs mixed operations selected at random 😈 (yes that's the real name, and yes it's the fun one)

kcpolytest wicked [-th num] [-it num] [-oat|-onl|-onl|-otl|-onr]
[-lv] path rnum

tran β€” performs test of transaction πŸ’Έ

kcpolytest tran [-th num] [-it num] [-hard]
[-oat|-onl|-onl|-otl|-onr] [-lv] path rnum

mapred β€” performs MapReduce operations 🌈

kcpolytest mapred [-rnd] [-ru] [-oat|-onl|-onl|-otl|-onr] [-lv]
[-tmp str] [-dbnum num] [-clim num] [-cbnum num] [-xnl] [-xpm]
[-xpr] [-xpf] [-xnc] path rnum

index β€” performs indexing operations πŸ”

kcpolytest index [-th num] [-rnd] [-set|-get|-rem|-etc] [-tran]
[-oat|-onl|-onl|-otl|-onr] [-lv] path rnum

misc β€” performs miscellaneous tests πŸ™ˆ (no rnum here bestie, just the path, that's the whole vibe)

kcpolytest misc path
not me pointing out that the synopsis literally writes -onl twice in the option group β€” that is character-for-character what the page says, i'm not fixing it, i'm just the messenger πŸ’€

πŸ’– the options πŸ’–

options feature the following, so let's go through every single one, no skips, no cap:

  • -th num β€” specifies the number of worker threads 🧡
  • -rnd β€” performs random test 🎲
  • -set β€” performs setting operation only
  • -get β€” performs getting operation only
  • -getw β€” performs getting with a buffer operation only
  • -rem β€” performs removing operation only
  • -etc β€” performs miscellaneous operations
  • -tran β€” performs transaction
  • -oat β€” opens the database with the auto transaction option
  • -oas β€” opens the database with the auto synchronization option
  • -onl β€” opens the database with the no locking option
  • -otl β€” opens the database with the try locking option
  • -onr β€” opens the database with the no auto repair option
  • -lv β€” reports all errors πŸ“’
  • -it num β€” specifies the number of repetition
  • -hard β€” performs physical synchronization
  • -ru β€” reuses the existing database ♻️
  • -tmp str β€” specifies the path of a directory for temporary storage
  • -dbnum num β€” specifies the number of temporary databases
  • -clim num β€” specifies the limit size of cache memory
  • -cbnum num β€” specifies the bucket number of cache memory
  • -xnl β€” executes with the no locking option
  • -xpm β€” executes with the parallel mapper option
  • -xpr β€” executes with the parallel reducer option
  • -xpf β€” executes with the parallel flusher option
  • -xnc β€” executes with the no compression option

⭐ exit status ⭐

this command returns 0 on success, and another value on failure 😭 so bestie, check that return code, it's literally the whole plot twist.


πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ this page came straight out of the <strong>Kyoto Cabinet</strong> manual, dated <strong>2012-05-24</strong>, and it's the one and only <strong>KCPOLYTEST(1)</strong>. go forth and test your polymorphic database, you gorgeous nerd πŸ¦‹βœ¨