From 89e4e7d77bcafbf6f925da787264764e790499c2 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 19 Aug 2009 21:07:31 +0300 Subject: [PATCH] Added requests/second stats to the debug boot timer. --- public/dispatch.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/dispatch.php b/public/dispatch.php index a1090bf..bbd6354 100644 --- a/public/dispatch.php +++ b/public/dispatch.php @@ -20,6 +20,8 @@ require_once($config_path."/init/boot.php"); // initialize zynapse Zynapse::init(); -echo "
\n
\nboot time: ".number_format(microtime(true) - $start, 6)." seconds
\n"; +$time = number_format(microtime(true) - $start, 6); +echo "
\n
\nboot time: ".$time." seconds
\n"; +echo "reqs/second: ".round(1 / $time)."
\n"; ?> \ No newline at end of file