diff --git a/benchmarks/Lexer.php b/benchmarks/Lexer.php index fdd01863..5fe3a55b 100644 --- a/benchmarks/Lexer.php +++ b/benchmarks/Lexer.php @@ -41,16 +41,22 @@ class RowTimer extends Benchmark_Timer $out .= "{$this->name}"; + $standard = false; + foreach ($result as $k => $v) { if ($v['name'] == 'Start' || $v['name'] == 'Stop') continue; //$perc = (($v['diff'] * 100) / $total); //$tperc = (($v['total'] * 100) / $total); - $out .= '' . $v['diff'] . ''; + //$out .= '' . $v['diff'] . ''; - //$out .= '' . number_format($perc, 2, '.', '') . - // '%'; + if ($standard == false) $standard = $v['diff']; + + $perc = $v['diff'] * 100 / $standard; + + $out .= '' . number_format($perc, 2, '.', '') . + '%'; }