TKRZW_FILE_PERF(1)
π TKRZW_FILE_PERF(1) π
okay bestie, you found the man page for tkrzw_file_perf from User Commands, and it's literally the file-implementation gym rat of the Tkrzw world. version 1.0.32, no cap. let's get into it π«Ά
β¨ NAME β¨
tkrzw_file_perf β manual page for tkrzw_file_perf 1.0.32
πΈ DESCRIPTION πΈ
so tkrzw_file_perf is the performance checker of file implementations of Tkrzw. it's giving benchmark-girlboss energy. it does NOT play. π
π Usage π
here's how you run her:
tkrzw_file_perf sequence [options] path
: Checks writing/reading performance in sequence.
tkrzw_file_perf wicked [options] path
: Checks consistency with various operations.
π Common options π
these apply to both subcommands, bestie, so read up π
--file implβ the name of a file implementation:std,mmap-para,mmap-atom,pos-para,pos-atom. (default:mmap-para) β five flavors, pick your fighter π₯--iter numβ the number of iterations. (default:10000)--size numβ the size of each record. (default:100)--threads numβ the number of threads. (default:1) β bump this if you want her to work π--random_seed numβ the random seed ornagativefor real RNG. (default:0)--alloc_init numβ the initial allocation size. (default:1048576)--alloc_inc numβ the allocation increment factor. (default:2.0)--block_size numβ the block size of the positional access file. (default:1)--head_buffer numβ the head buffer size of the positional access file. (default:0)--direct_ioβ enables the direct I/O option of the positional access file. no middleman, straight to the disk π¦--sync_ioβ enables the synchronous I/O option of the positional access file.--paddingβ enables padding at the end of the file. extra room at the end, she's comfy π--pagecacheβ enables the mini page cache in the process. tiny cache, big heart π§
π₯ Options for the sequence subcommand π₯
these only hit different when you're running sequence:
--randomβ uses random offsets rather than pre-defined ones. chaos mode, love that for you πͺοΈ--appendβ uses appending offsets rather than pre-defined ones. just keep tacking stuff on the end, periodt β--write_onlyβ does only writing. no reading, she's just yapping βοΈ--read_onlyβ does only reading. no writing, she's just listening π
heads up bestie: every option above defaults to exactly what's listed β don't come for me if you forget to pass--iterand she runs10000times. that's on the default, not on me π
and that's the whole page, fr fr. this was tkrzw_file_perf 1.0.32, dated January 2025, living its best life under User Commands. mwah, go benchmark something iconic πβ¨π
π¦ where this page comes from
- epel 10: tkrzw 1.0.32-2.el10_1 Β· Apache-2.0
- fedora 43: tkrzw 1.0.32-2.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms