summaryrefslogtreecommitdiff
path: root/sql-bench
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-11-17 14:38:53 +0200
committermonty@donna.mysql.com <>2000-11-17 14:38:53 +0200
commit7f2aff3de469e3875d89ef8536c59350fd22a85d (patch)
treecb381ac1fff02141e93130f4b183687527fdaffc /sql-bench
parent4db04e734e223499f33a7a2a361e3f61c34c7510 (diff)
downloadmariadb-git-7f2aff3de469e3875d89ef8536c59350fd22a85d.tar.gz
Fixed bug with text key compares in BDB
Diffstat (limited to 'sql-bench')
-rwxr-xr-xsql-bench/test-insert.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/sql-bench/test-insert.sh b/sql-bench/test-insert.sh
index 13bcfb2f6a9..8545f449fa6 100755
--- a/sql-bench/test-insert.sh
+++ b/sql-bench/test-insert.sh
@@ -367,38 +367,38 @@ print " for order_by_big ($small_loop_count:$rows): " .
$loop_time=new Benchmark;
$estimated=$rows=0;
-for ($i=1 ; $i <= $small_loop_count ; $i++)
+for ($i=1 ; $i <= $range_loop_count ; $i++)
{
- $start=$opt_loop_count/$small_loop_count*$i;
+ $start=$opt_loop_count/$range_loop_count*$i;
$end=$start+$i;
$rows+=fetch_all_rows($dbh,"select dummy1 from bench1 where id>=$start and id <= $end order by id",1);
$end_time=new Benchmark;
last if ($estimated=predict_query_time($loop_time,$end_time,\$i,$i,
- $small_loop_count));
+ $range_loop_count));
}
if ($estimated)
{ print "Estimated time"; }
else
{ print "Time"; }
-print " for order_by_key ($small_loop_count:$rows): " .
+print " for order_by_key ($range_loop_count:$rows): " .
timestr(timediff($end_time, $loop_time),"all") . "\n";
$loop_time=new Benchmark;
$estimated=$rows=0;
-for ($i=1 ; $i <= $small_loop_count ; $i++)
+for ($i=1 ; $i <= $range_loop_count ; $i++)
{
- $start=$opt_loop_count/$small_loop_count*$i;
- $end=$start+$small_loop_count;
+ $start=$opt_loop_count/$range_loop_count*$i;
+ $end=$start+$range_loop_count;
$rows+=fetch_all_rows($dbh,"select id2 from bench1 where id3>=$start and id3 <= $end order by id3",1);
$end_time=new Benchmark;
last if ($estimated=predict_query_time($loop_time,$end_time,\$i,$i,
- $small_loop_count));
+ $range_loop_count));
}
if ($estimated)
{ print "Estimated time"; }
else
{ print "Time"; }
-print " for order_by_key2_diff ($small_loop_count:$rows): " .
+print " for order_by_key2_diff ($range_loop_count:$rows): " .
timestr(timediff($end_time, $loop_time),"all") . "\n";
#