TCRTEST(1)

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

πŸ’– NAME πŸ’–

Okay bestie, welcome to TCRTEST(1) from Tokyo Tyrant 🫢 β€” tcrtest is literally test cases of the remote database API. That’s the name-section tea, and it ate πŸ’….

✨ DESCRIPTION ✨

The command tcrtest is a utility for facility test and performance test. It’s used in the following format, and we are keeping every command line exactly as written. host specifies the host name of the server. rnum specifies the number of iterations. No cap, every detail is staying 🌈.

tcrtest write

tcrtest write [-port num] [-cnum num] [-tout num] [-nr] [-rnd]
host rnum

Store records with keys of 8 bytes. They change as `00000001', `00000002'...

tcrtest read

tcrtest read [-port num] [-cnum num] [-tout num] [-mul num]
[-rnd] host

Retrieve all records of the database above.

tcrtest remove

tcrtest remove [-port num] [-cnum num] [-tout num] [-rnd] host

Remove all records of the database above.

tcrtest rcat

tcrtest rcat [-port num] [-cnum num] [-tout num] [-shl num]
[-dai|-dad] [-ext name] [-xlr|-xlg] host rnum

Store records with partway duplicated keys using concatenate mode.

tcrtest misc

tcrtest misc [-port num] [-cnum num] [-tout num] host rnum

Perform miscellaneous test of various operations.

tcrtest wicked

tcrtest wicked [-port num] [-cnum num] [-tout num] host rnum

Perform updating operations of list and map selected at random.

tcrtest table

tcrtest table [-port num] [-cnum num] [-tout num] [-exp num] host
rnum

Perform miscellaneous test of the table extension.

Options are featuring the following, bestie πŸ’…:

  • -port num β€” specify the port number.
  • -cnum num β€” specify the number of connections.
  • -tout num β€” specify the timeout of each session in seconds.
  • -nr β€” use the function tcrdbputnr instead of tcrdbput.
  • -rnd β€” select keys at random.
  • -mul num β€” specify the number of records for the mget command.
  • -shl num β€” use tcrdbputshl and specify the width.
  • -dai β€” use tcrdbaddint instead of tcrdbputcat.
  • -dad β€” use tcrdbadddouble instead of tcrdbputcat.
  • -ext name β€” call a script language extension function.
  • -xlr β€” perform record locking.
  • -xlg β€” perform global locking.
  • -exp num β€” specify the lifetime of expiration test.

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. This command returns 0 on success, another on failure 😭.

πŸ¦‹ SEE ALSO πŸ¦‹

Go give these their flowers too: ttserver(1), ttultest(1), ttulmgr(1), tcrmttest(1), tcrmgr(1), ttutil(3), tcrdb(3) πŸ’œ.


Catch you later, bestie β€” this page is from the Tokyo Tyrant Man Page set, dated 2010-08-05, and signed off with maximum sparkle πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from