1TCFTEST(1)                       Tokyo Cabinet                      TCFTEST(1)
2
3
4

NAME

6       tcftest - test cases of the fixed-length database API
7
8

DESCRIPTION

10       The  command  `tcftest'  is a utility for facility test and performance
11       test.  This command is used in the following format.  `path'  specifies
12       the  path  of  a  database file.  `rnum' specifies the number of itera‐
13       tions.  `width' specifies the width of the value of each record.  `lim‐
14       siz' specifies the limit size of the database file.
15
16              tcftest write [-mt] [-nl|-nb] [-rnd] path rnum [width [limsiz]]
17                     Store  records  with  keys  of  8  bytes.  They change as
18                     `00000001', `00000002'...
19              tcftest read [-mt] [-nl|-nb] [-wb] [-rnd] path
20                     Retrieve all records of the database above.
21              tcftest remove [-mt] [-nl|-nb] [-rnd] path
22                     Remove all records of the database above.
23              tcftest rcat [-mt] [-nl|-nb] [-pn num] [-dai|-dad|-rl] path rnum
24              [limsiz]]
25                     Store records with partway duplicated keys using concate‐
26                     nate mode.
27              tcftest misc [-mt] [-nl|-nb] path rnum
28                     Perform miscellaneous test of various operations.
29              tcftest wicked [-mt] [-nl|-nb] path rnum
30                     Perform updating operations selected at random.
31
32       Options feature the following.
33
34              -mt : call the function `tcfdbsetmutex'.
35              -nl : enable the option `FDBNOLCK'.
36              -nb : enable the option `FDBLCKNB'.
37              -rnd : select keys at random.
38              -wb : use the function `tcfdbget4' instead of `tcfdbget2'.
39              -pn num : specify the number of patterns.
40              -dai : use the function `tcfdbaddint' instead of `tcfdbputcat'.
41              -dad : use the function `tcfdbadddouble' instead  of  `tcfdbput‐
42              cat'.
43              -rl : set the length of values at random.
44              -ru : perform random operation on random key.
45
46       This command returns 0 on success, another on failure.
47
48

SEE ALSO

50       tcfmttest(1), tcfmgr(1), tcfdb(3), tokyocabinet(3)
51
52
53
54Man Page                          2012-08-18                        TCFTEST(1)
Impressum