TCBMTTEST(1)
β¨ TCBMTTEST(1) β¨ β the Tokyo Cabinet B+ tree test-suite era π
okay bestie, gather round, because we're talking about tcbmttest β a manual page from the Tokyo Cabinet collection, and she is lowkey iconic π
πΈ NAME πΈ
tcbmttest β the test cases of the B+ tree database API π¦
π DESCRIPTION π
So the command tcbmttest is a utility for facility test and performance test. It's the "let's stress-test this whole database and see if she survives" girlie. β¨
This command is used in the following format. Let's break down the lil placeholders first, because they're giving very specific:
pathspecifies the path of a database file.tnumspecifies the number of running threads.rnumspecifies the number of iterations.lmembspecifies the number of members in each leaf page.nmembspecifies the number of members in each non-leaf page.bnumspecifies the number of buckets.apowspecifies the power of the alignment.fpowspecifies the power of the free block pool.
π§ the formats, in all their glory π§
π write β go off, store those records
tcbmttest write [-tl] [-td|-tb|-tt|-tx] [-xm num] [-df num] [-nl|-nb] [-rnd] path tnum rnum [lmemb [nmemb [bnum [apow [fpow]]]]]
Store records with keys of 8 bytes. And the way they change?? They go 00000001, 00000002... one by one, no skips, no cap. π₯
π read β retrieval arc
tcbmttest read [-xm num] [-df num] [-nl|-nb] [-wb] [-rnd] path tnum
Retrieve all records of the database above. yes ma'am, we're getting them all back. π
π remove β the deletion era
tcbmttest remove [-xm num] [-df num] [-nl|-nb] [-rnd] path tnum
Remove all records of the database above. gone. deleted. not me being dramatic about it but like π
π wicked β chaos mode activated
tcbmttest wicked [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] [-nc] path tnum rnum
Perform updating operations selected at random. fr fr, she's picking fights with the database at random and seeing what happens. π
π typical β the well-rounded queen
tcbmttest typical [-tl] [-td|-tb|-tt|-tx] [-xm num] [-df num] [-nl|-nb] [-nc] [-rr num] path tnum rnum [lmemb [nmemb [bnum [apow [fpow]]]]]
Perform typical operations selected at random. just a lil bit of everything, a sampler platter, main character energy all around. β
π race β the competition
tcbmttest race [-tl] [-td|-tb|-tt|-tx] [-xm num] [-df num] [-nl|-nb] path tnum rnum [lmemb [nmemb [bnum [apow [fpow]]]]]
Perform race condition test. threads fighting for the same thing, absolute cinema. π
β¨ OPTIONS β¨
The options are featuring the following, and bestie, there are a lot of them, so buckle up:
-tlβ enable the optionBDBTLARGE. π-tdβ enable the optionBDBTDEFLATE.-tbβ enable the optionBDBTBZIP.-ttβ enable the optionBDBTTCBS.-txβ enable the optionBDBTEXCODEC.-xm numβ specify the size of the extra mapped memory.-df numβ specify the unit step number of auto defragmentation.-nlβ enable the optionBDBNOLCK.-nbβ enable the optionBDBLCKNB.-rndβ select keys at random. π²-wbβ use the functiontchdbget3instead oftchdbget. (a lil swap, iykyk)-ncβ omit the comparison test.-rr numβ specify the ratio of reading operation by percentage.
π«Ά exit status π«Ά
This command returns 0 on success, and another on failure. simple as that, no overthinking. π
π¦ SEE ALSO π¦
go read those too, bestie, they're all part of the same friend group. πΈ
π okay that's the whole page!! every flag, every arg, every default, all accounted for. slay. periodt. π
mwah π this lil walkthrough comes to you straight from the Tokyo Cabinet manual, dated 2012-08-18 β yeah she's vintage but she ate β and it lives under the man page name TCBMTTEST(1). take care of her πβ¨
π¦ 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