summaryrefslogtreecommitdiff
path: root/sql-bench/test-insert.sh
diff options
context:
space:
mode:
authormonty@tik.mysql.com <>2000-11-13 23:55:10 +0200
committermonty@tik.mysql.com <>2000-11-13 23:55:10 +0200
commit7a013339f84c48ea6194a35d9c00d0d549466b1d (patch)
tree6689cb755cdb6ba0fb4cc6fbb215d75b175228d2 /sql-bench/test-insert.sh
parentcb1d81f650df9fc3ec5965cf2dfbcb1fd8559d31 (diff)
downloadmariadb-git-7a013339f84c48ea6194a35d9c00d0d549466b1d.tar.gz
Bug fixes, TRUNCATE, safer passwords on command line and connect timeout
Diffstat (limited to 'sql-bench/test-insert.sh')
-rwxr-xr-xsql-bench/test-insert.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/sql-bench/test-insert.sh b/sql-bench/test-insert.sh
index 36a2b7761d5..13bcfb2f6a9 100755
--- a/sql-bench/test-insert.sh
+++ b/sql-bench/test-insert.sh
@@ -498,6 +498,7 @@ if ($limits->{'group_functions'})
$loop_time=new Benchmark;
$count=1;
+ $estimated=0;
for ($tests=0 ; $tests < $small_loop_count ; $tests++)
{
$sth=$dbh->prepare($query="select count(*) from bench1") or die $DBI::errstr;
@@ -573,9 +574,12 @@ if ($limits->{'group_functions'})
print "Warning: '$query' returned wrong number of rows\n";
}
}
+ $end_time=new Benchmark;
+ last if ($estimated=predict_query_time($loop_time,$end_time,\$count,$tests,
+ $small_loop_count));
}
- $end_time=new Benchmark;
- print "Time for select_group ($count): " .
+ print_time($estimated);
+ print " for select_group ($count): " .
timestr(timediff($end_time, $loop_time),"all") . "\n";
$loop_time=new Benchmark;