TCRMTTEST(1)

πŸ“¦ version 1.1.41, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

tcrmttest β€” test cases of the remote database API. Periodt, that's the whole name, bestie. ✨

πŸŽ€ DESCRIPTION πŸŽ€

Okay so the command tcrmttest is literally a utility for facility test under multi-thread situation β€” Tokyo Tyrant's little facility-test bestie is here. 😭 It gets used in this format, and the args are important:

  • host specifies the host name of the server.
  • rnum specifies the number of iterations.

Here's the exact command lineup, no cap:

tcrmttest write [-port num] [-tnum num] [-nr] [-rnd] [-ext name] host rnum
tcrmttest read [-port num] [-tnum num] [-mul num] host
tcrmttest remove [-port num] [-tnum num] host

Now the tea on each mode:

  • tcrmttest write [-port num] [-tnum num] [-nr] [-rnd] [-ext name] host rnum β€” Store records with keys of 8 bytes. They change as 00000001, 00000002... so cute, so sequential. πŸ’…
  • tcrmttest read [-port num] [-tnum num] [-mul num] host β€” Retrieve all records of the database above. Read the whole vibe back. 🫢
  • tcrmttest remove [-port num] [-tnum num] host β€” Remove all records of the database above. Bye-bye records, no cap. πŸ’€

Options feature the following, and yes, every flag is invited to the group chat:

  • -port num β€” specify the port number.
  • -tnum num β€” specify the number of running threads.
  • -nr β€” use the function tcrdbputnr instead of tcrdbput.
  • -rnd β€” select keys at random.
  • -ext name β€” call a script language extension function.
  • -mul num β€” specify the number of records for the mget command.
Heads up, bestie: if the port number is not more than 0, UNIX domain socket is used, and the path of the socket file is specified by the host parameter. iykyk πŸ¦‹

This command returns 0 on success, another on failure. Slay when it's zero, cry when it's not. 😭

🌈 SEE ALSO 🌈

ttserver(1), ttultest(1), ttulmgr(1), tcrtest(1), tcrmgr(1), ttutil(3), tcrdb(3) β€” the whole friend group, go say hi. πŸ’–


That's the whole adorable manual vibe, bestie 🫢 β€” brought to you by Tokyo Tyrant's TCRMTTEST(1), Man Page edition, dated 2010-08-05. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from