TCTTEST(1)

πŸ’– NAME πŸ’–

okay so bestie, listen β€” tcttest is the test-cases queen of the Tokyo Cabinet table database API. she's here to run facility tests and performance tests and she does not play. πŸ‘‘


✨ DESCRIPTION ✨

so the command tcttest is a utility for facility test and performance test. she's used in the following formats, and before we go any further, let's get the vocabulary straight because it's giving vocabulary quiz:

  • path β€” the path of a database file. πŸ“
  • rnum β€” the number of iterations. πŸ”
  • bnum β€” the number of buckets. πŸͺ£
  • apow β€” the power of the alignment. πŸ“
  • fpow β€” the power of the free block pool. 🏊

and here are all the formats she rolls with, fr fr:

tcttest write [-mt] [-tl] [-td|-tb|-tt|-tx] [-rc num] [-lc num]
[-nc num] [-xm num] [-df num] [-ip] [-is] [-in] [-it] [-if] [-ix]
[-nl|-nb] [-rnd] path rnum [bnum [apow [fpow]]]

store records with columns "str", "num", "type", and "flag". πŸ’Ύ

tcttest read [-mt] [-rc num] [-lc num] [-nc num] [-xm num] [-df
num] [-nl|-nb] [-rnd] path

retrieve all records of the database above. πŸ‘€

tcttest remove [-mt] [-rc num] [-lc num] [-nc num] [-xm num] [-df
num] [-nl|-nb] [-rnd] path

remove all records of the database above. 🧹 (bye bestie πŸ’€)

tcttest rcat [-mt] [-tl] [-td|-tb|-tt|-tx] [-rc num] [-lc num]
[-nc num] [-xm num] [-df num] [-ip] [-is] [-in] [-it] [-if] [-ix]
[-nl|-nb] [-pn num] [-dai|-dad|-rl|-ru] path rnum [bnum [apow
[fpow]]]

store records with partway duplicated keys using concatenate mode. 🧬

tcttest misc [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum

perform miscellaneous test of various operations. 🎲

tcttest wicked [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum

perform updating operations selected at random. 😈 (she's called wicked for a reason)


πŸŽ€ OPTIONS πŸŽ€

options feature the following, and yes we're doing all of them, no skips, no shortcuts, we eat the whole plate πŸ’…

  • -mt β€” call the function tctdbsetmutex. πŸ”’
  • -tl β€” enable the option TDBTLARGE.
  • -td β€” enable the option TDBTDEFLATE.
  • -tb β€” enable the option TDBTBZIP.
  • -tt β€” enable the option TDBTTCBS.
  • -tx β€” enable the option TDBTEXCODEC.
  • -rc num β€” specify the number of cached records. πŸ—ƒοΈ
  • -lc num β€” specify the number of cached leaf pages. πŸƒ
  • -nc num β€” specify the number of cached non-leaf pages. 🌿
  • -xm num β€” specify the size of the extra mapped memory. 🧠
  • -df num β€” specify the unit step number of auto defragmentation. 🧩
  • -ip β€” create the number index for the primary key. πŸ”‘
  • -is β€” create the string index for the column "str".
  • -in β€” create the number index for the column "num".
  • -it β€” create the string index for the column "type".
  • -if β€” create the token inverted index for the column "flag". 🚩
  • -ix β€” create the q-gram inverted index for the column "text".
  • -nl β€” enable the option TDBNOLCK.
  • -nb β€” enable the option TDBLCKNB.
  • -rnd β€” select keys at random. 🎰
  • -pn num β€” specify the number of patterns.
  • -dai β€” use the function tctdbaddint instead of tctdbputcat.
  • -dad β€” use the function tctdbadddouble instead of tctdbputcat.
  • -rl β€” set the length of values at random. πŸ“
  • -ru β€” select update operations at random. 🎲

this command returns 0 on success, another on failure. (so if you get a zero, that's the slay. anything else? that's a vibe check that failed bestie 😭)


πŸ¦‹ SEE ALSO πŸ¦‹


k bye, this was the TCTTEST(1) page from the Tokyo Cabinet manual, dated 2012-08-18, footer said "Man Page" and honestly? she ate. 🫢✨🌸 go run your tests, bestie, and remember: no cap, 0 means success. periodt. πŸ’–πŸ‘‘πŸŽ€