TCUTEST(1)
π TCUTEST(1) β bestie edition π
okay so you found the tcutest page in the Tokyo Cabinet manual, and honestly? you're gonna eat this one up. it's a manual page, page 1, and it is all about testing the utility API. let's get into it π«Ά
β¨ NAME β¨
tcutest β test cases of the utility API
like. it tests the utility API. that's the whole vibe. no cap.
πΈ DESCRIPTION πΈ
so the command tcutest is a utility for facility test and performance test. literally, that's its job. it's the friend who runs the drills so you don't have to π
this command is used in the following format. quick vocab check before we go any further, bestie:
rnumspecifies the number of iterations.anumspecifies the initial number of elements of array.bnumspecifies the number of buckets.
periodt. now the formats:
tcutest xstr rnum
perform test of extensible string. β¨
tcutest list [-rd] rnum [anum]
perform test of array list. π
tcutest map [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum [bnum]
perform test of hash map. π
tcutest tree [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum
perform test of ordered tree. πΈ
tcutest mdb [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum [bnum]
perform test of on-memory hash database. π¦
tcutest ndb [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum
perform test of on-memory tree database. π
tcutest misc rnum
perform test of miscellaneous routines. β¨
tcutest wicked rnum
perform updating operations of list and map selected at random. it's giving chaos, it's giving main character energy π
the options, and yes they're iconic
options feature the following.
-rdβ perform the reading test also.-trβ perform the iterator test also.-rndβ select keys at random.-dkβ use the functiontcxxxputkeepinstead oftcxxxput.-dcβ use the functiontcxxxputcatinstead oftcxxxput.-daiβ use the functiontcxxxaddintinstead oftcxxxput.-dadβ use the functiontcxxxadddoubleinstead oftcxxxput.-dprβ use the functiontcxxxputprocinstead oftcxxxput.
(not me obsessed with -rndβ¦ random keys? slay. π₯)
exit status
this command returns 0 on success, another on failure. lowkey the simplest contract in the whole manual and we respect it π«Ά
π SEE ALSO π
and that's the whole page, bestie β mwah π
this was a Tokyo Cabinet man page, rendered from the Man Page edition dated 2012-08-18. if you made it this far you're literally a Unix legend now ππ
π¦ 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