72 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef SYSBENCH_COMMANDS_H
 | |
| #define SYSBENCH_COMMANDS_H
 | |
| 
 | |
| /*const char * sysbench_prepare =
 | |
|          "sysbench --test=oltp \
 | |
|          --oltp-table-size=1000000 --mysql-db=test --mysql-user=skysql --mysql-password=skysql \
 | |
|          --mysql-port=4006 --mysql-host=%s  prepare";
 | |
| 
 | |
| 
 | |
| 
 | |
| const char * sysbench_command =
 | |
|          "sysbench --test=oltp \
 | |
|          --mysql-host=%s --mysql-port=%d --mysql-user=skysql --mysql-password=skysql \
 | |
|          --mysql-db=test --mysql-table-engine=innodb  \
 | |
|          --num-threads=32 --oltp-table-size=1000000  --oltp-read-only=off \
 | |
|          --oltp-dist-type=uniform --oltp-skip-trx=off --init-rng=on --oltp-test-mode=complex \
 | |
|          --max-requests=0  --max-time=600 run";*/
 | |
| 
 | |
| const char * sysbench_prepare =
 | |
|     "%s/sysbench --test=%s/tests/db/oltp.lua \
 | |
|                  --oltp-table-size=1000000 --mysql-db=test --mysql-user=skysql --mysql-password=skysql \
 | |
|                  --mysql-port=4006 --mysql-host=%s --oltp-tables-count=4 prepare";
 | |
| 
 | |
| const char * sysbench_command =
 | |
|     "%s/sysbench --test=%s/tests/db/oltp.lua \
 | |
|                  --mysql-host=%s --mysql-port=%d --mysql-user=skysql --mysql-password=skysql \
 | |
|                  --mysql-db=test --mysql-table-engine=innodb --mysql-ignore-duplicates=on \
 | |
|                  --num-threads=32 --oltp-table-size=1000000 --oltp-tables-count=2 --oltp-read-only=%s \
 | |
|                  --oltp-dist-type=uniform --oltp-skip-trx=off --init-rng=on --oltp-test-mode=complex \
 | |
|                  --max-requests=0 --report-interval=5 --max-time=100 run";
 | |
| 
 | |
| 
 | |
| const char * sysbench_prepare1 =
 | |
|     "%s/sysbench --test=%s/tests/db/oltp.lua \
 | |
|                  --oltp-table-size=1000 --mysql-db=test --mysql-user=skysql --mysql-password=skysql \
 | |
|                  --mysql-port=4006 --mysql-host=%s --oltp-tables-count=1 prepare";
 | |
| 
 | |
| const char * sysbench_command1 =
 | |
|     "%s/sysbench --test=%s/tests/db/oltp.lua \
 | |
|                   --mysql-host=%s --mysql-port=%d --mysql-user=skysql --mysql-password=skysql \
 | |
|                   --mysql-db=test --mysql-table-engine=innodb --mysql-ignore-duplicates=on \
 | |
|                   --num-threads=32 --oltp-table-size=1000 --oltp-tables-count=1 --oltp-read-only=%s \
 | |
|                   --oltp-dist-type=uniform --oltp-skip-trx=off --init-rng=on --oltp-test-mode=complex \
 | |
|                   --max-requests=0 --report-interval=5 --max-time=100 run";
 | |
| 
 | |
| 
 | |
| const char * sysbench_command_long =
 | |
|     "%s/sysbench --test=%s/tests/db/oltp.lua \
 | |
|                 --mysql-host=%s --mysql-port=%d --mysql-user=skysql --mysql-password=skysql \
 | |
|                 --mysql-db=test --mysql-table-engine=innodb --mysql-ignore-duplicates=on \
 | |
|                 --num-threads=32 --oltp-table-size=1000000 --oltp-tables-count=2 --oltp-read-only=%s \
 | |
|                 --oltp-dist-type=uniform --oltp-skip-trx=off --init-rng=on --oltp-test-mode=complex \
 | |
|                 --max-requests=0 --report-interval=5 --max-time=2592000 run";
 | |
| 
 | |
| 
 | |
| const char * sysbench_prepare_short =
 | |
|     "%s/sysbench --test=%s/tests/db/oltp.lua \
 | |
|                          --oltp-table-size=10000 --mysql-db=test --mysql-user=skysql --mysql-password=skysql \
 | |
|                          --mysql-port=4006 --mysql-host=%s --oltp-tables-count=4 prepare";
 | |
| 
 | |
| const char * sysbench_command_short =
 | |
|     "%s/sysbench --test=%s/tests/db/oltp.lua \
 | |
|                         --mysql-host=%s --mysql-port=%d --mysql-user=skysql --mysql-password=skysql \
 | |
|                         --mysql-db=test --mysql-table-engine=innodb --mysql-ignore-duplicates=on \
 | |
|                         --num-threads=32 --oltp-table-size=10000 --oltp-tables-count=2 --oltp-read-only=%s \
 | |
|                         --oltp-dist-type=uniform --oltp-skip-trx=off --init-rng=on --oltp-test-mode=complex \
 | |
|                         --max-requests=0 --report-interval=5 --max-time=300 run";
 | |
| 
 | |
| 
 | |
| 
 | |
| #endif // SYSBENCH_COMMANDS_H
 | 
