TCHTEST(1)
π NAME π
tchtest β the test-case bestie for the hash database API, fr fr π§ͺβ¨
πΈ DESCRIPTION πΈ
okay so listen π β to make the hash database API easy-peasy to use, there are three commands in the group chat: tchtest, tchmttest, and tchmgr.
The command tchtest is the utility that does facility test and performance test duty. It gets used in the following formats, and here's the tea on the placeholders π:
pathβ specifies the path of a database file.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.
tchtest write [-mt] [-tl] [-td|-tb|-tt|-tx] [-rc num] [-xm num]
[-df num] [-nl|-nb] [-as] [-rnd] path rnum [bnum [apow [fpow]]]
Store records with keys of 8 bytes. They change as
`00000001', `00000002'...
tchtest read [-mt] [-rc num] [-xm num] [-df num] [-nl|-nb] [-wb]
[-rnd] path
Retrieve all records of the database above.
tchtest remove [-mt] [-rc num] [-xm num] [-df num] [-nl|-nb]
[-rnd] path
Remove all records of the database above.
tchtest rcat [-mt] [-tl] [-td|-tb|-tt|-tx] [-rc num] [-xm num]
[-df num] [-nl|-nb] [-pn num] [-dai|-dad|-rl|-ru] path rnum [bnum
[apow [fpow]]]
Store records with partway duplicated keys using
concatenate mode.
tchtest misc [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum
Perform miscellaneous test of various operations.
tchtest wicked [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum
Perform updating operations selected at random.
quick translation of the vibe, bestie: write stores records with 8-byte keys that go 00000001, 00000002... and so on π¦. read retrieves every record from that database. remove deletes every record from that database. rcat stores records with partway duplicated keys using concatenate mode β¨. misc runs a miscellaneous test of various operations. And wicked performs updating operations that get selected at random π.
β¨ OPTIONS β¨
the options are giving very much "here's the whole toolbox", and they do the following π :
-mtβ call the functiontchdbsetmutex.-tlβ enable the optionHDBTLARGE.-tdβ enable the optionHDBTDEFLATE.-tbβ enable the optionHDBTBZIP.-ttβ enable the optionHDBTTCBS.-txβ enable the optionHDBTEXCODEC.-rc numβ specify the number of cached records.-xm numβ specify the size of the extra mapped memory.-df numβ specify the unit step number of auto defragmentation.-nlβ enable the optionHDBNOLCK.-nbβ enable the optionHDBLCKNB.-asβ use the functiontchdbputasyncinstead oftchdbput.-rndβ select keys at random.-wbβ use the functiontchdbget3instead oftchdbget.-pn numβ specify the number of patterns.-daiβ use the functiontchdbaddintinstead oftchdbputcat.-dadβ use the functiontchdbadddoubleinstead oftchdbputcat.-rlβ set the length of values at random.-ruβ select update operations at random.
π«Ά EXIT STATUS π«Ά
this command returns 0 on success, and another value on failure. no cap, that's the whole mood π
π SEE ALSO π
tchmttest(1), tchmgr(1), tchdb(3), tokyocabinet(3)
okay that's the whole page bestie, go forth and test those hash databases π β this was the Tokyo Cabinet manual page for TCHTEST, dated 2012-08-18, and it ate, 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