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

NAME

6       tcttest - test cases of the table database API
7
8

DESCRIPTION

10       The  command  `tcttest'  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.  `bnum' specifies the number of buckets.  `apow'  specifies  the
14       power  of  the alignment.  `fpow' specifies the power of the free block
15       pool.
16
17              tcttest write [-mt] [-tl] [-td|-tb|-tt|-tx] [-rc num] [-lc  num]
18              [-nc  num]  [-xm  num]  [-df  num] [-ip] [-is] [-in] [-it] [-if]
19              [-ix] [-nl|-nb] [-rnd] path rnum [bnum [apow [fpow]]]
20                     Store records with  columns  "str",  "num",  "type",  and
21                     "flag".
22              tcttest  read [-mt] [-rc num] [-lc num] [-nc num] [-xm num] [-df
23              num] [-nl|-nb] [-rnd] path
24                     Retrieve all records of the database above.
25              tcttest remove [-mt] [-rc num] [-lc num]  [-nc  num]  [-xm  num]
26              [-df num] [-nl|-nb] [-rnd] path
27                     Remove all records of the database above.
28              tcttest  rcat  [-mt] [-tl] [-td|-tb|-tt|-tx] [-rc num] [-lc num]
29              [-nc num] [-xm num] [-df num]  [-ip]  [-is]  [-in]  [-it]  [-if]
30              [-ix]  [-nl|-nb]  [-pn  num] [-dai|-dad|-rl|-ru] path rnum [bnum
31              [apow [fpow]]]
32                     Store records with partway duplicated keys using concate‐
33                     nate mode.
34              tcttest misc [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum
35                     Perform miscellaneous test of various operations.
36              tcttest wicked [-mt] [-tl] [-td|-tb|-tt|-tx] [-nl|-nb] path rnum
37                     Perform updating operations selected at random.
38
39       Options feature the following.
40
41              -mt : call the function `tctdbsetmutex'.
42              -tl : enable the option `TDBTLARGE'.
43              -td : enable the option `TDBTDEFLATE'.
44              -tb : enable the option `TDBTBZIP'.
45              -tt : enable the option `TDBTTCBS'.
46              -tx : enable the option `TDBTEXCODEC'.
47              -rc num : specify the number of cached records.
48              -lc num : specify the number of cached leaf pages.
49              -nc num : specify the number of cached non-leaf pages.
50              -xm num : specify the size of the extra mapped memory.
51              -df num : specify the unit step number of auto defragmentation.
52              -ip : create the number index for the primary key.
53              -is : create the string index for the column "str".
54              -in : create the number index for the column "num".
55              -it : create the string index for the column "type".
56              -if : create the token inverted index for the column "flag".
57              -ix : create the q-gram inverted index for the column "text".
58              -nl : enable the option `TDBNOLCK'.
59              -nb : enable the option `TDBLCKNB'.
60              -rnd : select keys at random.
61              -pn num : specify the number of patterns.
62              -dai : use the function `tctdbaddint' instead of `tctdbputcat'.
63              -dad  :  use the function `tctdbadddouble' instead of `tctdbput‐
64              cat'.
65              -rl : set the length of values at random.
66              -ru : select update operations at random.
67
68       This command returns 0 on success, another on failure.
69
70

SEE ALSO

72       tctmttest(1), tctmgr(1), tctdb(3), tokyocabinet(3)
73
74
75
76Man Page                          2009-09-04                        TCTTEST(1)
Impressum