table of contents
TCRTEST(1) | Tokyo Tyrant | TCRTEST(1) |
NAME¶
tcrtest - test cases of the remote database API
DESCRIPTION¶
The command `tcrtest' is a utility for facility test and performance test. This command is used in the following format. `host' specifies the host name of the server. `rnum' specifies the number of iterations.
tcrtest write [-port num] [-cnum num] [-tout num] [-nr] [-rnd] host rnum
tcrtest read [-port num] [-cnum num] [-tout num] [-mul num] [-rnd] host
tcrtest remove [-port num] [-cnum num] [-tout num] [-rnd] host
tcrtest rcat [-port num] [-cnum num] [-tout num] [-shl num] [-dai|-dad] [-ext name] [-xlr|-xlg] host rnum
tcrtest misc [-port num] [-cnum num] [-tout num] host rnum
tcrtest wicked [-port num] [-cnum num] [-tout num] host rnum
tcrtest table [-port num] [-cnum num] [-tout num] [-exp num] host rnum
Options feature the following.
-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¶
ttserver(1), ttultest(1), ttulmgr(1), tcrmttest(1), tcrmgr(1), ttutil(3), tcrdb(3)
2010-01-20 | Man Page |