tctmttest − test cases of the table database API |
The command ‘tctmttest’ is a utility for facility test under multi−thread situation. This command is used in the following format. ‘path’ specifies the path of a database file. ‘tnum’ specifies the number of running threads. ‘rnum’ specifies the number of iterations. ‘bnum’ specifies the number of buckets. ‘apow’ specifies the power of the alignment. ‘fpow’ specifies the power of the free block pool. |
tctmttest write [−tl] [−td|−tb|−tt|−tx] [−rc num] [−lc num] [−nc num] [−xm num] [−df num] [−ip] [−is] [−in] [−it] [−if] [−ix] [−nl|−nb] [−rnd] path tnum rnum [bnum [apow [fpow]]] |
Store records with columns "str", "num", "type", and "flag". |
tctmttest read [−rc num] [−lc num] [−nc num] [−xm num] [−df num] [−nl|−nb] [−rnd] path tnum |
Retrieve all records of the database above. |
tctmttest remove [−rc num] [−lc num] [−nc num] [−xm num] [−df num] [−nl|−nb] [−rnd] path tnum |
Remove all records of the database above. |
tctmttest wicked [−tl] [−td|−tb|−tt|−tx] [−nl|−nb] path tnum rnum |
Perform updating operations selected at random. |
tctmttest typical [−tl] [−td|−tb|−tt|−tx] [−rc num] [−lc num] [−nc num] [−xm num] [−df num] [−nl|−nb] [−rr num] path tnum rnum [bnum [apow [fpow]] |
Perform typical operations selected at random. |
Options feature the following. |
−tl : enable the option
‘TDBTLARGE’. |
This command returns 0 on success, another on failure. |
tcttest(1), tctmgr(1), tctdb(3), tokyocabinet(3) |