logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tcfmttest - test cases of the fixed-length database API

Description

       The  command  `tcfmttest'  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.  `width' specifies the width of the value
       of each record.  `limsiz' specifies the limit size of the database file.

              tcfmttestwrite [-nl|-nb] [-rnd] pathtnumrnum [width [limsiz]]
                     Store records with keys of 8 bytes.  They change as `00000001', `00000002'...
              tcfmttestread [-nl|-nb] [-wb] [-rnd] pathtnum
                     Retrieve all records of the database above.
              tcfmttestremove [-nl|-nb] [-rnd] pathtnum
                     Remove all records of the database above.
              tcfmttestwicked [-nl|-nb] [-nc] pathtnumrnum
                     Perform updating operations selected at random.
              tcfmttesttypical [-nl|-nb] [-nc] [-rrnum] pathtnumrnum [width [limsiz]]
                     Perform typical operations selected at random.

       Options feature the following.

              -nl : enable the option `FDBNOLCK'.
              -nb : enable the option `FDBLCKNB'.
              -rnd : select keys at random.
              -wb : use the function `tcfdbget4' instead of `tcfdbget2'.
              -nc : omit the comparison test.
              -rrnum : specify the ratio of reading operation by percentage.

       This command returns 0 on success, another on failure.

Name

       tcfmttest - test cases of the fixed-length database API

See Also

tcftest(1), tcfmgr(1), tcfdb(3), tokyocabinet(3)

Man Page                                           2012-08-18                                       TCFMTTEST(1)

See Also