| 1 |
# Run sb_run.pl with given parameters |
| 2 |
|
| 3 |
# Select the benchmark name |
| 4 |
let $args = --benchmark=$bench_name; |
| 5 |
|
| 6 |
# Benchmark parameters |
| 7 |
if ($bench_tables) { |
| 8 |
let $args = $args --tables=$bench_tables; |
| 9 |
} |
| 10 |
if ($bench_threads) { |
| 11 |
let $args = $args --threads=$bench_threads; |
| 12 |
} |
| 13 |
if ($bench_secondary_index) { |
| 14 |
let $args = $args --secondary=$bench_secondary_index; |
| 15 |
} |
| 16 |
if ($bench_args) { |
| 17 |
let $args = $args $bench_args; |
| 18 |
} |
| 19 |
#echo args: $args; |
| 20 |
|
| 21 |
--exec perl $MYSQL_TEST_DIR/suite/ndbcrunch/sb_run.pl $args |
| 22 |
|
| 23 |
# Reset args |
| 24 |
let $benchmark=; |
| 25 |
let $bench_tables=; |
| 26 |
let $bench_threads=; |
| 27 |
let $bench_args=; |