TCTMTTEST(1)

🌸 NAME 🌸

tctmttest β€” test cases of the table database API πŸ’–


✨ DESCRIPTION ✨

hi bestie 🫢 okay so this page comes to you straight out of the Tokyo Cabinet manual, section 1, and it is entirely about tctmttest.

The command tctmttest is a utility for facility test under multi-thread situation. That's the whole vibe: it's a test harness that runs the table database API through its paces while a whole squad of threads is doing the absolute most. 🌈

Before we get to the formats, here's the tea on every placeholder, no cap:

  • path β€” specifies the path of a database file.
  • tnum β€” specifies the number of running threads.
  • rnum β€” specifies the number of iterations.
  • bnum β€” specifies the number of buckets.
  • apow β€” specifies the power of the alignment.
  • fpow β€” specifies the power of the free block pool.

This command is used in the following format. πŸ’…

πŸ¦‹ write

tctmttest write [-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 tnum rnum [bnum [apow [fpow]]]

Store records with columns "str", "num", "type", and "flag".

πŸ¦‹ read

tctmttest read [-rc num] [-lc num] [-nc num] [-xm num] [-df num]
[-nl|-nb] [-rnd] path tnum

Retrieve all records of the database above.

πŸ¦‹ remove

tctmttest remove [-rc num] [-lc num] [-nc num] [-xm num] [-df
num] [-nl|-nb] [-rnd] path tnum

Remove all records of the database above.

πŸ¦‹ wicked

tctmttest wicked [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path tnum rnum

Perform updating operations selected at random.

πŸ¦‹ typical

tctmttest typical [-tl] [-td|-tb|-tt|-tx] [-rc num] [-lc num]
[-nc num] [-xm num] [-df num] [-nl|-nb] [-rr num] path tnum rnum
[bnum [apow [fpow]]

Perform typical operations selected at random.


πŸŽ€ Options feature the following πŸŽ€

  • -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. 🎲
  • -nc β€” omit the comparison test.
  • -rr num β€” specify the ratio of reading operation by percentage.
not me noticing that -nc shows up twice on this page πŸ™ˆ β€” one with a num and one without. I'm not the one who wrote it, I'm just the messenger, and both lines are staying right here. πŸ’€

This command returns 0 on success, another on failure. ✨


🌈 SEE ALSO 🌈


and that's a wrap, bestie 🫢 this little gem is Man Page, dated 2012-08-18, and it answers to the name TCTMTTEST(1). go forth and multithread responsibly, you absolute icon πŸ‘‘πŸ’…πŸŒΈ