KCHASHTEST(1)

✨ KCHASHTEST ✨

okay bestie, gather round, because this is the kchashtest manual page β€” a whole command-line interface (that's the (1) section, iykyk) for putting the file hash database through its paces πŸ’…


🌸 NAME 🌸

kchashtest β€” command line interface to test the file hash database 🧚


πŸ’– DESCRIPTION πŸ’–

So basically kchashtest is the utility you use for facility test and performance test of the file hash database. It's giving lab coat but make it cute. πŸ₯Όβœ¨

You run it in the following format, no cap: path specifies the path of a database file, and rnum specifies the number of iterations. Slay.

kchashtest order [-th num] [-rnd] [-set|-get|-getw|-rem|-etc]
[-tran] [-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts]
[-tl] [-tc] [-bnum num] [-msiz num] [-dfunit num] [-lv] path rnum
       Performs in-order tests.
kchashtest queue [-th num] [-it num] [-rnd]
[-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
[-tc] [-bnum num] [-msiz num] [-dfunit num] [-lv] path rnum
       Performs queuing operations.
kchashtest wicked [-th num] [-it num] [-oat|-onl|-onl|-otl|-onr]
[-apow num] [-fpow num] [-ts] [-tl] [-tc] [-bnum num] [-msiz num]
[-dfunit num] [-lv] path rnum
       Performs mixed operations selected at random.
kchashtest tran [-th num] [-it num] [-hard]
[-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
[-tc] [-bnum num] [-msiz num] [-dfunit num] [-lv] path rnum
       Performs test of transaction.

so the four modes are the moment, fr fr:

  • order β€” performs in-order tests πŸŽ€
  • queue β€” performs queuing operations πŸ¦‹
  • wicked β€” performs mixed operations selected at random 😈 (the name ate and left no crumbs)
  • tran β€” performs test of transaction πŸ‘‘

✨ OPTIONS ✨

the options are serving the following, bestie:

  • -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
  • -apow num β€” specifies the power of the alignment of record size
  • -fpow num β€” specifies the power of the capacity of the free block pool 🏊
  • -ts β€” tunes the database with the small option
  • -tl β€” tunes the database with the linear option
  • -tc β€” tunes the database with the compression option
  • -bnum num β€” specifies the number of buckets of the hash table πŸͺ£
  • -msiz num β€” specifies the size of the memory-mapped region
  • -dfunit num β€” specifies the unit step number of auto defragmentation 🧹
  • -lv β€” reports all errors πŸ“’
  • -it num β€” specifies the number of repetition πŸ”
  • -hard β€” performs physical synchronization πŸ’ͺ
lowkey important: this command returns 0 on success, and another value on failure. so like, check your exit status bestie, don't get caught lacking πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

kchashmgr(1) β€” go read that one too, it's the sister page and she also eats πŸ’œ


and that's the whole page, periodt. πŸ’…βœ¨

this was the Kyoto Cabinet KCHASHTEST(1) man page, sourced as Man Page, dated 2012-05-24, filed under KCHASHTEST(1) β€” mwah, go run some tests, you're gonna do great πŸ«ΆπŸŽ€