summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorMaurice Svay <maurice@svay.com>2011-07-10 12:04:50 +0200
committerMaurice Svay <maurice@svay.com>2011-07-10 12:04:50 +0200
commitc1b569d50fc2825cc42fc276bf26133b42a358ec (patch)
tree0476452b8fc20c4c3264df227ba17259b1e9eeb5 /index.php
parent212b6999783cddfc27e7aedf4b8b33c08ee28481 (diff)
downloadplanet-c1b569d50fc2825cc42fc276bf26133b42a358ec.tar
planet-c1b569d50fc2825cc42fc276bf26133b42a358ec.tar.gz
planet-c1b569d50fc2825cc42fc276bf26133b42a358ec.tar.bz2
planet-c1b569d50fc2825cc42fc276bf26133b42a358ec.tar.xz
planet-c1b569d50fc2825cc42fc276bf26133b42a358ec.zip
Remove benchmarking code
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/index.php b/index.php
index a92cbaf..f88e518 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,4 @@
<?php
-$bench['start'] = microtime(true);
-
$debug = isset($_GET['debug']) ? $_GET['debug'] : 0;
if ($debug) {
error_reporting(E_ALL);
@@ -22,7 +20,6 @@ if (is_file(dirname(__FILE__).'/custom/config.yml')){
//Instantiate app
$Planet = new Planet($PlanetConfig);
-$bench['codeloaded'] = microtime(true);
//Load from cache
$items = Array();
@@ -30,7 +27,6 @@ if (0 < $Planet->loadOpml(dirname(__FILE__).'/custom/people.opml')) {
$Planet->loadFeeds();
$items = $Planet->getItems();
}
-$bench['contentloaded'] = microtime(true);
//Prepare output cache
Cache::$enabled = false;
@@ -51,11 +47,6 @@ if (!OutputCache::Start($_GET['type'], $cache_key, $cache_duration)) {
OutputCache::End();
}
-$bench['contentdisplayed'] = microtime(true);
-
-echo "<!-- Load code: ".($bench['codeloaded'] - $bench['start'])." -->";
-echo "<!-- Load content: ".($bench['contentloaded'] - $bench['codeloaded'])." -->";
-echo "<!-- Display: ".($bench['contentdisplayed'] - $bench['contentloaded'])." -->";
echo "<!--";
var_dump($Planet->errors);
echo "-->"; \ No newline at end of file