mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
Portability fixes
This commit is contained in:
parent
19a9f8f943
commit
e5dcd8bed3
13 changed files with 244 additions and 99 deletions
|
|
@ -365,6 +365,25 @@ else
|
|||
print " for order_by_big ($small_loop_count:$rows): " .
|
||||
timestr(timediff($end_time, $loop_time),"all") . "\n";
|
||||
|
||||
$loop_time=new Benchmark;
|
||||
$estimated=$rows=0;
|
||||
for ($i=1 ; $i <= $range_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 id3",1);
|
||||
$end_time=new Benchmark;
|
||||
last if ($estimated=predict_query_time($loop_time,$end_time,\$i,$i,
|
||||
$range_loop_count));
|
||||
}
|
||||
if ($estimated)
|
||||
{ print "Estimated time"; }
|
||||
else
|
||||
{ print "Time"; }
|
||||
print " for order_by_range ($range_loop_count:$rows): " .
|
||||
timestr(timediff($end_time, $loop_time),"all") . "\n";
|
||||
|
||||
|
||||
$loop_time=new Benchmark;
|
||||
$estimated=$rows=0;
|
||||
for ($i=1 ; $i <= $range_loop_count ; $i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue