1TCFMTTEST(1) Tokyo Cabinet TCFMTTEST(1)
2
3
4
6 tcfmttest - test cases of the fixed-length database API
7
8
10 The command `tcfmttest' 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 `width' specifies the width of the value of each record. `limsiz'
15 specifies the limit size of the database file.
16
17 tcfmttest write [-nl|-nb] [-rnd] path tnum rnum [width [limsiz]]
18 Store records with keys of 8 bytes. They change as
19 `00000001', `00000002'...
20 tcfmttest read [-nl|-nb] [-wb] [-rnd] path tnum
21 Retrieve all records of the database above.
22 tcfmttest remove [-nl|-nb] [-rnd] path tnum
23 Remove all records of the database above.
24 tcfmttest wicked [-nl|-nb] [-nc] path tnum rnum
25 Perform updating operations selected at random.
26 tcfmttest typical [-nl|-nb] [-nc] [-rr num] path tnum rnum
27 [width [limsiz]]
28 Perform typical operations selected at random.
29
30 Options feature the following.
31
32 -nl : enable the option `FDBNOLCK'.
33 -nb : enable the option `FDBLCKNB'.
34 -rnd : select keys at random.
35 -wb : use the function `tcfdbget4' instead of `tcfdbget2'.
36 -nc : omit the comparison test.
37 -rr num : specifiy the ratio of reading operation by percentage.
38
39 This command returns 0 on success, another on failure.
40
41
43 tcftest(1), tcfmgr(1), tcfdb(3), tokyocabinet(3)
44
45
46
47Man Page 2012-08-18 TCFMTTEST(1)