FairCom’s Multi-threaded API sample and performance testing programs. These sample programs demonstrate FairCom’s Multi-thread API. The main routine runs a trial of database operations; however, this application spawns one or more threads, each of which runs a trial.
ctmtap divides the screen into columns, with the output from each thread placed in its own column. If you specify more than 8 threads, only the output from the first eight threads will be shown. This limit is for on-screen clarity and can be changed by editing the #define for MAX_COLS in ctmtap.c. Regardless of the value of MAX_COLS, all threads will be running, however, output will be shown for only MAX_COLS threads.
wtmtap is a Win32 GUI version of ctmtap.
In V10.3 and later, the ctmtap test program supports command-line options to specify the user name and password. If these options are not specified, ctmtap connects as guest. The options are:
The following example connects as user ADMIN to server FAIRCOMS, creates new files using the ctTRNLOG mode and runs 8 threads, each adding 100000 records:
ctmtap uADMIN pADMIN sFAIRCOMS fc mT t8 aA n100000