From a091cb2ffd96a04ea1d389a377fc6266d540e40f Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 26 Jan 2011 10:18:56 +0100 Subject: [PATCH] Factor out parts of benchmarks unrelated to running in the browser --- benchmark/benchmarks.js | 38 ++++++++ benchmark/index.html | 205 ++++++++-------------------------------- benchmark/runner.js | 117 +++++++++++++++++++++++ 3 files changed, 197 insertions(+), 163 deletions(-) create mode 100644 benchmark/benchmarks.js create mode 100644 benchmark/runner.js diff --git a/benchmark/benchmarks.js b/benchmark/benchmarks.js new file mode 100644 index 0000000..6410cfa --- /dev/null +++ b/benchmark/benchmarks.js @@ -0,0 +1,38 @@ +benchmarks = [ + { + id: "json", + title: "JSON", + tests: [ + { file: "example1.json", title: "Example 1" }, + { file: "example2.json", title: "Example 2" }, + { file: "example3.json", title: "Example 3" }, + { file: "example4.json", title: "Example 4" }, + { file: "example5.json", title: "Example 5" } + ] + }, + { + id: "css", + title: "CSS", + tests: [ + { file: "blueprint/src/reset.css", title: "Blueprint - reset.css (source)" }, + { file: "blueprint/src/typography.css", title: "Blueprint - typography.css (source)" }, + { file: "blueprint/src/forms.css", title: "Blueprint - forms.css (source)" }, + { file: "blueprint/src/grid.css", title: "Blueprint - grid.css (source)" }, + { file: "blueprint/src/print.css", title: "Blueprint - print.css (source)" }, + // Contains syntax errors. + // { file: "blueprint/src/ie.css", title: "Blueprint - ie.css (source)" }, + { file: "blueprint/min/screen.css", title: "Blueprint - screen.css (minified)" }, + { file: "blueprint/min/print.css", title: "Blueprint - print.css (minified)" }, + // Contains syntax errors. + // { file: "blueprint/min/ie.css", title: "Blueprint - ie.css (minified)" }, + { file: "960.gs/src/reset.css", title: "960.gs - reset.css (source)" }, + { file: "960.gs/src/text.css", title: "960.gs - text.css (source)" }, + { file: "960.gs/src/960.css", title: "960.gs - 960.css (source)" }, + { file: "960.gs/src/960_24_col.css", title: "960.gs - 960_24_col.css (source)" }, + { file: "960.gs/min/reset.css", title: "960.gs - reset.css (minified)" }, + { file: "960.gs/min/text.css", title: "960.gs - text.css (minified)" }, + { file: "960.gs/min/960.css", title: "960.gs - 960.css (minified)" }, + { file: "960.gs/min/960_24_col.css", title: "960.gs - 960_24_col.css (minified)" } + ] + } +]; diff --git a/benchmark/index.html b/benchmark/index.html index 0603657..52f598f 100644 --- a/benchmark/index.html +++ b/benchmark/index.html @@ -63,45 +63,9 @@ + +