From 01f5436bdd9f9fe9ed9966fe5a3ccd3cdf8daff1 Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 27 May 2007 11:37:43 +0000 Subject: [PATCH] --- benchmark/query_cache.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/benchmark/query_cache.php b/benchmark/query_cache.php index 270451196..9a7a49821 100644 --- a/benchmark/query_cache.php +++ b/benchmark/query_cache.php @@ -24,6 +24,8 @@ while ($i--) { $coll->save(); $conn->clear(); +print "
DQL BENCHMARK \n";
+
 $timepoint = microtime(true);
 
 $i = 100;
@@ -34,7 +36,7 @@ while ($i--) {
     $query->from('Entity e')->where('e.id > 0');
     $coll = $query->execute(array(), Doctrine::FETCH_ARRAY);
 }
-print 'EXECUTED 100 QUERIES WITH CACHING ENABLED + FETCH_ARRAY : ' . (microtime(true) - $timepoint) . "
"; +print 'EXECUTED 100 QUERIES WITH CACHING ENABLED + FETCH_ARRAY : ' . (microtime(true) - $timepoint) . "\n"; $timepoint = microtime(true); @@ -45,7 +47,7 @@ while ($i--) { $query->from('Entity e')->where('e.id > 0'); $coll = $query->execute(array(), Doctrine::FETCH_ARRAY); } -print 'EXECUTED 100 QUERIES WITHOUT CACHING + FETCH_ARRAY : ' . (microtime(true) - $timepoint); +print 'EXECUTED 100 QUERIES WITHOUT CACHING + FETCH_ARRAY : ' . (microtime(true) - $timepoint) . "\n"; $timepoint = microtime(true); @@ -57,7 +59,7 @@ while ($i--) { $query->from('Entity e')->where('e.id > 0'); $coll = $query->execute(); } -print 'EXECUTED 100 QUERIES WITH CACHING ENABLED + FETCH_RECORD : ' . (microtime(true) - $timepoint) . "
"; +print 'EXECUTED 100 QUERIES WITH CACHING ENABLED + FETCH_RECORD : ' . (microtime(true) - $timepoint) . "\n"; $timepoint = microtime(true); @@ -68,4 +70,4 @@ while ($i--) { $query->from('Entity e')->where('e.id > 0'); $coll = $query->execute(); } -print 'EXECUTED 100 QUERIES WITHOUT CACHING + FETCH_RECORD : ' . (microtime(true) - $timepoint); +print 'EXECUTED 100 QUERIES WITHOUT CACHING + FETCH_RECORD : ' . (microtime(true) - $timepoint) . "\n";