TCAMTTEST(1)

✨ TCAMTTEST β€” bestie's guide to the abstract database API test πŸ’–

okay so this lil page lives in the Tokyo Cabinet manual, section 1 (that's the "commands you actually run in a shell" section, iykyk). sit down, grab a boba, we're testing an abstract database API 🫢


🌸 NAME 🌸

tcamttest β€” the test cases for the abstract database API, no cap.


πŸ’… DESCRIPTION πŸ’…

so tcamttest is a utility for facility test under multi-thread situation ✨ like, it's the little stress-test goblin that throws a bunch of threads at your database and sees if everything holds up. iconic behaviour honestly.

you run it in the following formats. three little things to know before we go:

  • name β€” specifies the database name πŸŽ€
  • tnum β€” specifies the number of running threads 🧡
  • rnum β€” specifies the number of iterations πŸ”

and here's the actual menu of modes, one bullet per vibe:

  • tcamttest write name tnum rnum β€” store records with keys of 8 bytes πŸ“ and the way those keys behave is they change as 00000001, 00000002... so yeah, counting upward, cute lil sequence, obsessed.
  • tcamttest read name tnum β€” retrieve all the records of the database above πŸ‘‘
  • tcamttest remove name tnum β€” remove all the records of the database above πŸ’€ gone, deleted, periodt.
heads up bestie: this command returns 0 on success, and another value on failure 😭 so like, if you get a 0 you ate, and if you get literally anything else, something's wrong and you should go check.
tcamttest write name tnum rnum
tcamttest read name tnum
tcamttest remove name tnum

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, fr fr:


kisses, this page was served up fresh on 2012-08-18 by the Tokyo Cabinet crew πŸŽ€βœ¨ slay, go run your tests πŸ’œ