From 647e7be1fd6e4e65a171acbafc94d7f2828b0e2d Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 21 Jul 2010 22:38:44 +0200 Subject: [PATCH] Benchmark: Users can specify the number of runs --- benchmark/index.html | 64 +++++++++++++++++++++++++++++++++----------- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/benchmark/index.html b/benchmark/index.html index 4426db2..2733d31 100644 --- a/benchmark/index.html +++ b/benchmark/index.html @@ -16,6 +16,7 @@ table { width: 48em; margin: 0 auto; border-spacing: 0; border-collapse: collapse; } table td, table th { border: 1px solid silver; padding: .25em 1em; } table td .unit { font-size: 75%; color: gray; } + table td.no-results { padding: 1em; text-align: center; } table td.input-size { text-align: right; } table td.parse-time { text-align: right; } table td.parse-speed { text-align: right; } @@ -27,11 +28,26 @@ table tr.total td.parse-speed .value { font-size: 175%; } a, a:visited { color: #3d586c; } + + #options { + width: 46em; + margin: 2em auto; border-radius: .5em; -moz-border-radius: .5em; padding: .5em 1em; + text-align: center; + background-color: #f0f0f0; + } + #options #run-count { width: 3em; } + #options #run { width: 5em; margin-left: 2em; }

PEG.js Benchmark Suite

+
+ + times + +
+ @@ -39,6 +55,9 @@ + + +
TestAverage Parse Time Average Parse Speed
No results available yet.
@@ -46,18 +65,6 @@