diff options
Diffstat (limited to 'sql-bench/test-select.sh')
-rwxr-xr-x | sql-bench/test-select.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql-bench/test-select.sh b/sql-bench/test-select.sh index 32059d6ac8a..ef76c027380 100755 --- a/sql-bench/test-select.sh +++ b/sql-bench/test-select.sh @@ -338,13 +338,14 @@ if ($limits->{'group_functions'}) $loop_time=new Benchmark; $rows=$estimated=$count=0; - for ($i=0 ; $i < $opt_medium_loop_count ; $i++) + $test_count=$opt_medium_loop_count/10; + for ($i=0 ; $i < $test_count ; $i++) { $count++; $rows+=fetch_all_rows($dbh,"select idn,count(distinct region) from bench1 group by idn"); $end_time=new Benchmark; last if ($estimated=predict_query_time($loop_time,$end_time,\$count,$i+1, - $opt_medium_loop_count)); + $test_count)); } print_time($estimated); print " for count_distinct_big ($count:$rows): " . |