name = htmlentities($name);
$this->Benchmark_Timer($auto);
}
function getOutput() {
$total = $this->TimeElapsed();
$result = $this->getProfiling();
$dashes = '';
$out = '
';
$out .= "{$this->name} | ";
foreach ($result as $k => $v) {
if ($v['name'] == 'Start' || $v['name'] == 'Stop') continue;
$perc = (($v['diff'] * 100) / $total);
$tperc = (($v['total'] * 100) / $total);
$out .= '' . number_format($perc, 2, '.', '') .
"% | ";
}
$out .= '
';
return $out;
}
}
?>
Benchmark: HTMLPurifier_Lexer versus HTMLSax
Benchmark: HTMLPurifier_Lexer versus HTMLSax
Random input was: ' .
'' . htmlentities($random) .
'';
?>