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 functiontctdbsetmutex. π-tlβ enable the optionTDBTLARGE.-tdβ enable the optionTDBTDEFLATE.-tbβ enable the optionTDBTBZIP.-ttβ enable the optionTDBTTCBS.-txβ enable the optionTDBTEXCODEC.-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 optionTDBNOLCK.-nbβ enable the optionTDBLCKNB.-rndβ select keys at random. π°-pn numβ specify the number of patterns.-daiβ use the functiontctdbaddintinstead oftctdbputcat.-dadβ use the functiontctdbadddoubleinstead oftctdbputcat.-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. πππ
π¦ where this page comes from
- centos-stream 10: tokyocabinet 1.4.48-30.el10 Β· LGPL-2.1-or-later
- centos-stream 9: tokyocabinet 1.4.48-19.el9 Β· LGPLv2+
- centos-stream 9: tokyocabinet 1.4.48-19.el9 Β· LGPLv2+
- debian bookworm: tokyocabinet-bin 1.4.48-15 Β· LGPL-2.1-or-later
- debian trixie: tokyocabinet-bin 1.4.48-15.1+b1 Β· LGPL-2.1-or-later
- fedora 43: tokyocabinet 1.4.48-28.fc43 Β· LGPL-2.1-or-later
- fedora 43: tokyocabinet 1.4.48-28.fc43 Β· LGPL-2.1-or-later
- fedora 44: tokyocabinet 1.4.48-30.fc44 Β· LGPL-2.1-or-later
- fedora 44: tokyocabinet 1.4.48-30.fc44 Β· LGPL-2.1-or-later
- nixos 26.05: tokyocabinet 1.4.48
- nixpkgs unstable: tokyocabinet 1.4.48
- ubuntu jammy: tokyocabinet-bin 1.4.48-14build1 Β· LGPL-2.1-or-later
- ubuntu noble: tokyocabinet-bin 1.4.48-15.1build1 Β· LGPL-2.1-or-later
- ubuntu questing: tokyocabinet-bin 1.4.48-15.1build2
- ubuntu resolute: tokyocabinet-bin 1.4.48-15.1build3 Β· LGPL-2.1-or-later
- ubuntu stonking: tokyocabinet-bin 1.4.48-15.1build3 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms