1TCTMTTEST(1) Tokyo Cabinet TCTMTTEST(1)
2
3
4
6 tctmttest - test cases of the table database API
7
8
10 The command `tctmttest' is a utility for facility test under
11 multi-thread situation. This command is used in the following format.
12 `path' specifies the path of a database file. `tnum' specifies the
13 number of running threads. `rnum' specifies the number of iterations.
14 `bnum' specifies the number of buckets. `apow' specifies the power of
15 the alignment. `fpow' specifies the power of the free block pool.
16
17 tctmttest write [-tl] [-td|-tb|-tt|-tx] [-rc num] [-lc num] [-nc
18 num] [-xm num] [-df num] [-ip] [-is] [-in] [-it] [-if] [-ix]
19 [-nl|-nb] [-rnd] path tnum rnum [bnum [apow [fpow]]]
20 Store records with columns "str", "num", "type", and
21 "flag".
22 tctmttest read [-rc num] [-lc num] [-nc num] [-xm num] [-df num]
23 [-nl|-nb] [-rnd] path tnum
24 Retrieve all records of the database above.
25 tctmttest remove [-rc num] [-lc num] [-nc num] [-xm num] [-df
26 num] [-nl|-nb] [-rnd] path tnum
27 Remove all records of the database above.
28 tctmttest wicked [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path tnum
29 rnum
30 Perform updating operations selected at random.
31 tctmttest typical [-tl] [-td|-tb|-tt|-tx] [-rc num] [-lc num]
32 [-nc num] [-xm num] [-df num] [-nl|-nb] [-rr num] path tnum rnum
33 [bnum [apow [fpow]]
34 Perform typical operations selected at random.
35
36 Options feature the following.
37
38 -tl : enable the option `TDBTLARGE'.
39 -td : enable the option `TDBTDEFLATE'.
40 -tb : enable the option `TDBTBZIP'.
41 -tt : enable the option `TDBTTCBS'.
42 -tx : enable the option `TDBTEXCODEC'.
43 -rc num : specify the number of cached records.
44 -lc num : specify the number of cached leaf pages.
45 -nc num : specify the number of cached non-leaf pages.
46 -xm num : specify the size of the extra mapped memory.
47 -df num : specify the unit step number of auto defragmentation.
48 -ip : create the number index for the primary key.
49 -is : create the string index for the column "str".
50 -in : create the number index for the column "num".
51 -it : create the string index for the column "type".
52 -if : create the token inverted index for the column "flag".
53 -ix : create the q-gram inverted index for the column "text".
54 -nl : enable the option `TDBNOLCK'.
55 -nb : enable the option `TDBLCKNB'.
56 -rnd : select keys at random.
57 -nc : omit the comparison test.
58 -rr num : specify the ratio of reading operation by percentage.
59
60 This command returns 0 on success, another on failure.
61
62
64 tcttest(1), tctmgr(1), tctdb(3), tokyocabinet(3)
65
66
67
68Man Page 2009-09-04 TCTMTTEST(1)