TCFMTTEST(1)

πŸ“¦
version 1.4.48 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

tcfmttest β€” test cases of the fixed-length database API. This is the Tokyo Cabinet manual, bestie, and this utility is here to do its facility-test thing under multi-thread situation. Slay. πŸ’…

✨ DESCRIPTION ✨

Okay so real talk: tcfmttest is a utility for facility test under multi-thread situation. That's the official vibe. It's used in the following format.

  • path β€” specifies the path of a database file.
  • tnum β€” specifies the number of running threads.
  • rnum β€” specifies the number of iterations.
  • width β€” specifies the width of the value of each record.
  • limsiz β€” specifies the limit size of the database file.

Here are the modes, and yes, every flag matters, no cap:

  • tcfmttest write [-nl|-nb] [-rnd] path tnum rnum [width [limsiz]] β€” Store records with keys of 8 bytes. They change as 00000001, 00000002...
  • tcfmttest read [-nl|-nb] [-wb] [-rnd] path tnum β€” Retrieve all records of the database above.
  • tcfmttest remove [-nl|-nb] [-rnd] path tnum β€” Remove all records of the database above.
  • tcfmttest wicked [-nl|-nb] [-nc] path tnum rnum β€” Perform updating operations selected at random.
  • tcfmttest typical [-nl|-nb] [-nc] [-rr num] path tnum rnum [width [limsiz]] β€” Perform typical operations selected at random.

🌈 OPTIONS 🌈

These options feature the following, bestie:

  • -nl β€” enable the option FDBNOLCK.
  • -nb β€” enable the option FDBLCKNB.
  • -rnd β€” select keys at random.
  • -wb β€” use the function tcfdbget4 instead of tcfdbget2.
  • -nc β€” omit the comparison test.
  • -rr num β€” sets the ratio of reading operation by percentage.

This command returns 0 on success, another on failure. Periodt. 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

tcftest(1), tcfmgr(1), tcfdb(3), tokyocabinet(3) β€” go read these too, iykyk. πŸ’œ

Mwah! πŸ’‹ That's the whole page. The manual is Tokyo Cabinet, the footer says Man Page, and the date is 2012-08-18 β€” with page tag TCFMTTEST(1). Bye bestie! 🫢