KCTREETEST(1)

πŸ’– KCTREETEST πŸ’– (the manual, but make it make sense)

okay so hi bestie 🫢 this is the manual page for kctreetest, living in section 1 (yes, the command-line section, the one you actually type) of the Kyoto Cabinet docs. it's a whole mood, it's a whole utility, and by the end of this you're gonna understand every single flag. no cap. let's get into it. πŸ’…


✨ NAME ✨

kctreetest β€” the command line interface to test the file tree database.

that's it. that's the name. short, sweet, iconic. πŸ‘‘


🌸 DESCRIPTION 🌸

so <hotpink>kctreetest</hotpink> is a utility for facility test and performance test of the file tree database. it's giving "I benchmark things for a living." 🧚

this command gets used in the following formats. quick vocab check first:

  • path β€” specifies the path of a database file. that's where your db lives, bestie. 🏠
  • rnum β€” specifies the number of iterations. how many times we're doing the thing.

πŸ¦‹ the formats πŸ¦‹

order β€” in-order tests

kctreetest order [-th num] [-rnd] [-set|-get|-getw|-rem|-etc]
[-tran] [-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts]
[-tl] [-tc] [-bnum num] [-psiz num] [-msiz num] [-dfunit num]
[-pccap num] [-rcd|-rcld|-rcdd] [-lv] path rnum

performs in-order tests. very demure, very mindful, everything in the order it's supposed to be in. ✨

queue β€” queuing operations

kctreetest queue [-th num] [-it num] [-rnd]
[-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
[-tc] [-bnum num] [-psiz num] [-msiz num] [-dfunit num] [-pccap
num] [-rcd|-rcld|-rcdd] [-lv] path rnum

performs queuing operations. line up, babes, we're doing this in order. πŸŽ€

wicked β€” mixed operations, selected at random

kctreetest wicked [-th num] [-it num] [-oat|-onl|-onl|-otl|-onr]
[-apow num] [-fpow num] [-ts] [-tl] [-tc] [-bnum num] [-psiz num]
[-msiz num] [-dfunit num] [-pccap num] [-rcd|-rcld|-rcdd] [-lv]
path rnum

performs mixed operations selected at random. it's called wicked for a reason 😭 chaos mode, main character energy, anything could happen.

tran β€” transaction test

kctreetest tran [-th num] [-it num] [-hard]
[-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
[-tc] [-bnum num] [-psiz num] [-msiz num] [-dfunit num] [-pccap
num] [-rcd|-rcld|-rcdd] [-lv] path rnum

performs test of transaction. atomicity girlies, rise. πŸ”₯

🎯 the options, in their own words

options feature the following. every single one, we're not skipping anybody:

  • -th num β€” specifies the number of worker threads. more threads = more friends helping out. 🫢
  • -rnd β€” performs random test. spin the wheel bestie.
  • -set β€” performs setting operation only. just setting. nothing else. focus. πŸ’…
  • -get β€” performs getting operation only. just getting.
  • -getw β€” performs getting with a buffer operation only.
  • -rem β€” performs removing operation only. bye bye data πŸ‘‹
  • -etc β€” performs miscellaneous operations. the grab bag. the random drawer in the kitchen.
  • -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. πŸͺ£
  • -psiz num β€” specifies the size of each page.
  • -msiz num β€” specifies the size of the memory-mapped region.
  • -dfunit num β€” specifies the unit step number of auto defragmentation.
  • -pccap num β€” specifies the capacity size of the page cache.
  • -rcd β€” use the decimal comparator instead of the lexical one.
  • -rcld β€” use the lexical descending comparator instead of the ascending one.
  • -rcdd β€” use the decimal descending comparator instead of the lexical one.
  • -lv β€” reports all errors. loud and proud, we want ALL the tea. 🍡
  • -it num β€” specifies the number of repetition.
  • -hard β€” performs physical synchronization.
heads up bestie: the synopsis lines are copy-pasted exactly as the docs have them, so yes, -onl really does show up twice in that -oat|-onl|-onl|-otl|-onr cluster. that's not me being clumsy, that's the original. and -oas is in the options list even though it's not in the synopsis. iykyk. πŸ™ˆ

🚦 exit status

this command returns 0 on success, another on failure. zero = we ate. anything else = we did not. 😭


πŸ‘€ SEE ALSO πŸ‘€

go read that one next, bestie, it's the manager and it's lowkey iconic too.


and that's the whole page!! slay, periodt, no notes πŸ’– this was the KCTREETEST(1) page, it comes from the Kyoto Cabinet manual, dated 2012-05-24, and it was formatted as a man page. mwah. πŸŽ€βœ¨