tcutest(1)

tcutest1

Test cases of the utility api

Overview

The command `tcutest' is a utility for facility test and performance test. This command is used in the following format. `rnum' specifies the number of iterations. `anum' specifies the initial number of elements of array. `bnum' specifies the number of buckets.

tcutest xstr rnum

Perform test of extensible string.

tcutest list [-rd] rnum [anum]

Perform test of array list.

tcutest map [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum [bnum]

Perform test of hash map.

tcutest tree [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum

Perform test of ordered tree.

tcutest mdb [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum [bnum]

Perform test of on-memory hash database.

tcutest ndb [-rd] [-tr] [-rnd] [-dk|-dc|-dai|-dad|-dpr] rnum

Perform test of on-memory tree database.

tcutest misc rnum

Perform test of miscellaneous routines.

tcutest wicked rnum

Perform updating operations of list and map selected at random.

Options feature the following.

-rd : perform the reading test also.
-tr : perform the iterator test also.
-rnd : select keys at random.
-dk : use the function `tcxxxputkeep' instead of `tcxxxput'.
-dc : use the function `tcxxxputcat' instead of `tcxxxput'.
-dai : use the function `tcxxxaddint' instead of `tcxxxput'.
-dad : use the function `tcxxxadddouble' instead of `tcxxxput'.
-dpr : use the function `tcxxxputproc' instead of `tcxxxput'.

This command returns 0 on success, another on failure.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8–13

From tokyocabinet-bin 1.4.48-15.1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.