K2HBENCH(1)
π K2HBENCH β the benchmark bestie for K2HASH
okay so real quick, this is a page from the NoSQL(KVS) Library manual set, and the star of the show is k2hbench(1). π
β¨ NAME β¨
K2HBENCH β Bench mark Tool for K2HASH. yes bestie, that is literally the whole name. she does benchmarks. that's the vibe. π
πΈ SYNOPSIS πΈ
k2hbench [ -f filename | -t filename | -m | -h ] [OPTIONS]
look at that. four whole ways to start her up and then a pile of OPTIONS on top. iconic honestly.
π¦ DESCRIPTION π¦
so k2hbench is a bench mark test tool, and no cap, she can test benchmark for the K2HASH library with any mode. then this tool read/write the k2hash file or memory for bench mark on multi process/thread β like, she goes hard, she goes parallel. π₯
and if you ever forget how to use her? just type -h. she'll tell you. she's not mysterious, she's helpful. π«Ά
π OPTIONS π
okay here comes the menu, bestie. read it all, don't skip, I will know.
-hβ display help. the classic. the "help me" button. π-f [K2HASH FILE]β specify permanent k2hash file. she's in it for the long haul. π-t [K2HASH FILE]β specify temporary k2hash file. here for a good time, not a long time. β¨-mβ k2hash data on only memory. no file, just vibes, just RAM. π§-type [ro | rw]β bench type as READ ONLY/READ WRITE (defaultrw). π-proc [count]β process count (default1).-thread [count]β thread count (default1).-loop [loop count]β Loop count (default1) for each thread, must set over 0. so like,0is not the move,0is a crime,0will not be tolerated. π-dcount [count]β data count (default1) for using read/write test.-dlength [byte]β data length (default128 byte) for testing.-start_nodataβ if set this option, not initialize data before starting. she just starts. no warmup, no prep, straight to it. π-mask [BIT COUNT]β specify bit mask count for k2hash data.-cmask [BIT COUNT]β specify collision bit mask count for k2hash data.-elementcnt [ELEMENT COUNT]β specify element count for each k2hash table.-pagesize [BYTE]β specify pagesize for each k2hash internal data.-nofullmapnot map all of k2hash file on memory when k2hash file specified. (yeah bestie that's how she's written,-nofullmaprides shotgun in this entry, we don't question the formatting, we respect it π )-roβ work with read only mode when permanent k2hash file. look, don't touch. β-g [ERR | WAN | INFO]β set debugging level, k2hbench displays debugging message for itself. she's narrating her own life. main character energy fr fr. π¬
π ENVIRONMENT π
K2HDBGMODEβ theK2HDBGMODEenvironment sets debugging message level as same as-goption. The value is set asSILENT,ERR,WANorINFO. and here's the fun part: when k2hbench catchesSIGUSR1signal, the debugging message level is bumpup. The level is changed as order bySILENT,ERR,WAN,INFO,SILENTβ¦ β yes, it loops back around, she cycles, she's on a rotation. π2HDBGFILEβ the2HDBGFILEenvironment sets the file which is debugging message, this is as same as-glogoption. (yes, it's spelled2HDBGFILEup top there, exactly like that, we copy the queen as she is π)
ngl the debug levels going in a circle is lowkey the most unhinged slay on this whole page and I am obsessed with it. πβ¨
π SEE ALSO π
go read her friends, they're all icons:
π BUGS π
Please report owner and committers. that's it. that's the whole bug section. go tell the grown-ups. π£
π AUTHOR π
k2hash has been written by Takeshi Nakatani <ggtakec@gmail.com>. π«Ά thank you king.
and that's a wrap bestie β this whole thing lives under the K2HASH banner, February 2014 vintage, which honestly makes her an elder statesman of the KVS world and she still ate. periodt. π β¨π
π¦ where this page comes from
- epel 10: k2hash 1.0.101-1.el10_3 Β· MIT
- epel 9: k2hash 1.0.98-1.el9 Β· MIT
- fedora 43: k2hash 1.0.99-1.fc43 Β· MIT
- fedora 44: k2hash 1.0.100-2.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms