TCBTEST(1)
π NAME π
tcbtest β test cases of the B+ tree database API. And yes bestie, this is the TCBTEST(1) manual page, so buckle up. π
β¨ DESCRIPTION β¨
Okay so tcbtest is a utility for facility test and performance test. It's literally built to run test cases and vibe-check performance. You use it in the following formats. First, the placeholders, because you gotta know what you're feeding it:
pathβ specifies the path of a database file. Like, where the database lives. πrnumβ specifies the number of iterations. How many times we do the thing.lmembβ specifies the number of members in each leaf page.nmembβ specifies the number of members in each non-leaf page.bnumβ specifies the number of buckets.apowβ specifies the power of the alignment.fpowβ specifies the power of the free block pool.
Now the commands, exactly as they come, no cap:
tcbtest write [-mt] [-cd|-ci|-cj] [-tl] [-td|-tb|-tt|-tx] [-lc
num] [-nc num] [-xm num] [-df num] [-ls num] [-ca num] [-nl|-nb]
[-rnd] path rnum [lmemb [nmemb [bnum [apow [fpow]]]]]
Store records with keys of 8 bytes. They change as
`00000001', `00000002'...
tcbtest read [-mt] [-cd|-ci|-cj] [-lc num] [-nc num] [-xm num]
[-df num] [-nl|-nb] [-wb] [-rnd] path
Retrieve all records of the database above.
tcbtest remove [-mt] [-cd|-ci|-cj] [-lc num] [-nc num] [-xm num]
[-df num] [-nl|-nb] [-rnd] path
Remove all records of the database above.
tcbtest rcat [-mt] [-cd|-ci|-cj] [-tl] [-td|-tb|-tt|-tx] [-lc
num] [-nc num] [-xm num] [-df num] [-ls num] [-ca num] [-nl|-nb]
[-pn num] [-dai|-dad|-rl|-ru] path rnum [lmemb [nmemb [bnum [apow
[fpow]]]]]
Store records with partway duplicated keys using
concatenate mode.
tcbtest queue [-mt] [-cd|-ci|-cj] [-tl] [-td|-tb|-tt|-tx] [-lc
num] [-nc num] [-xm num] [-df num] [-ls num] [-ca num] [-nl|-nb]
path rnum [lmemb [nmemb [bnum [apow [fpow]]]]]
Perform queueing and dequeueing.
tcbtest misc [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum
Perform miscellaneous test of various operations.
tcbtest wicked [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum
Perform updating operations selected at random.
Options feature the following. And bestie, there are a LOT, so let's go one by one, periodt:
-mtβ call the functiontchdbsetmutex.-cdβ use the comparison functiontccmpdecimal.-ciβ use the comparison functiontccmpint32.-cjβ use the comparison functiontccmpint64.-tlβ enable the optionBDBTLARGE.-tdβ enable the optionBDBTDEFLATE.-tbβ enable the optionBDBTBZIP.-ttβ enable the optionBDBTTCBS.-txβ enable the optionBDBTEXCODEC.-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.-ls numβ specify the maximum size of each leaf page.-ca numβ specify the capacity number of records.-nlβ enable the optionBDBNOLCK.-nbβ enable the optionBDBLCKNB.-rndβ select keys at random.-wbβ use the functiontcbdbget3instead oftcbdbget.-pn numβ specify the number of patterns.-daiβ use the functiontcbdbaddintinstead oftcbdbputcat.-dadβ use the functiontcbdbadddoubleinstead oftcbdbputcat.-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 0, you ate. If not, something's off. π
π SEE ALSO π
And that's the whole page, bestie! This came from the Man Page source, dated 2012-08-18, and it's giving iconic Unix documentation energy. Stay slay. πβ¨π¦
π¦ 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