TKRZW_FILE_PERF(1)

πŸ“¦
version 1.0.32 Β· 3 versions
, in epel 10, fedora 43

πŸ’– 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 or nagative for 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 --iter and she runs 10000 times. 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