Skip to content

Commit

Permalink
Release v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Jun 5, 2018
1 parent 3b5f525 commit 2797bf1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ i.e. like this:

```
$ node dist/cli.js
Running Web Tooling Benchmark 0.3.2...
--------------------------------------
acorn: 6.06 runs/sec
babel: 6.23 runs/sec
babel-minify: 4.88 runs/sec
babylon: 6.73 runs/sec
buble: 5.19 runs/sec
chai: 9.60 runs/sec
coffeescript: 4.68 runs/sec
espree: 2.65 runs/sec
esprima: 5.92 runs/sec
jshint: 6.12 runs/sec
lebab: 6.72 runs/sec
postcss: 5.01 runs/sec
prepack: 4.54 runs/sec
prettier: 3.54 runs/sec
source-map: 6.58 runs/sec
typescript: 7.83 runs/sec
uglify-es: 13.54 runs/sec
uglify-js: 3.70 runs/sec
--------------------------------------
Geometric mean: 5.74 runs/sec
Running Web Tooling Benchmark v0.5.0…
-------------------------------------
acorn: 6.94 runs/s
babel: 7.45 runs/s
babel-minify: 6.66 runs/s
babylon: 6.26 runs/s
buble: 4.07 runs/s
chai: 14.33 runs/s
coffeescript: 5.95 runs/s
espree: 2.09 runs/s
esprima: 4.13 runs/s
jshint: 8.84 runs/s
lebab: 7.07 runs/s
postcss: 5.35 runs/s
prepack: 5.58 runs/s
prettier: 6.19 runs/s
source-map: 7.63 runs/s
typescript: 8.59 runs/s
uglify-es: 13.69 runs/s
uglify-js: 4.59 runs/s
-------------------------------------
Geometric mean: 6.38 runs/s
```

Or you open a web browser and point it to `dist/index.html`, or you can use one
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-tooling-benchmark",
"description": "JavaScript benchmark for common web developer workloads",
"version": "0.4.0",
"version": "0.5.0",
"repository": "https://github.com/v8/web-tooling-benchmark",
"main": "src/cli.js",
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ const gmean = require("compute-gmean");
const packageJson = require("../package.json");
const suite = require("./suite");

console.log(`Running Web Tooling Benchmark ${packageJson.version}...`);
console.log("--------------------------------------");
console.log(`Running Web Tooling Benchmark v${packageJson.version}`);
console.log("-------------------------------------");

suite.on("error", event => {
const benchmark = event.target;
const name = benchmark.name;
const error = benchmark.error;
console.log(`Encountered error running benchmark ${name}, aborting...`);
console.log(`Encountered error running benchmark ${name}, aborting`);
console.log(error.stack);
suite.abort();
});
Expand All @@ -26,15 +26,15 @@ suite.on("cycle", event => {
const hz = benchmark.hz;
const stats = benchmark.stats;
console.log(
`${align(name, 14, "right")}: ${align(hz.toFixed(2), 5, "right")} runs/sec`
`${align(name, 14, "right")}: ${align(hz.toFixed(2), 5, "right")} runs/s`
);
});

suite.on("complete", event => {
if (suite.aborted) return;
const hz = gmean(suite.map(benchmark => benchmark.hz));
console.log("--------------------------------------");
console.log(`Geometric mean: ${align(hz.toFixed(2), 5, "right")} runs/sec`);
console.log("-------------------------------------");
console.log(`Geometric mean: ${align(hz.toFixed(2), 5, "right")} runs/s`);
});

suite.run();

0 comments on commit 2797bf1

Please sign in to comment.