Name: web-tooling-benchmark
Owner: V8
Description: JavaScript benchmark for common web developer workloads
Created: 2017-10-18 10:21:59.0
Updated: 2018-05-14 17:07:43.0
Pushed: 2018-05-14 18:39:55.0
Homepage: https://v8.github.io/web-tooling-benchmark/
Size: 7317
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a benchmark suite designed to measure the JavaScript related workloads commonly used by Web Developers nowadays, for example the core workloads in popular tools like Babel or TypeScript. It's the explicit goal to measure only the JavaScript performance aspect, which is affected by the JavaScript engine, and not measure I/O or other unrelated aspects.
See the in-depth analysis for a detailed description of the tests included in this benchmark suite.
The latest browser version of the benchmark is available at https://v8.github.io/web-tooling-benchmark/.
To see the supported Node.js versions of the current version of the Web Tooling Benchmark, see the node_js
section of our CI configuration.
To build the benchmark suite, run
m install
assuming that you have a working Node.js installation. Once
the command is done, it produces a bundled version that is suitable to run in
JS shells (i.e. d8
, jsc
or jsshell
) in dist/cli.js
and another bundle
in dist/browser.js
that is used by the browser version in dist/index.html
.
To build an individual benchmark rather than the entire suite, pass the --env.only
CLI flag:
m run build -- --env.only babel
You can either run the benchmark suite directly via Node, i.e. like this:
de dist/cli.js
ing Web Tooling Benchmark 0.3.2...
----------------------------------
acorn: 6.06 runs/sec
babel: 6.23 runs/sec
babylon: 6.73 runs/sec
buble: 5.19 runs/sec
chai: 9.60 runs/sec
ffeescript: 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
----------------------------------
etric mean: 5.74 runs/sec
Or you open a web browser and point it to dist/index.html
, or you can use one
of the engine JS shells to run the special bundle in dist/cli.js
. The easiest
way to install recent versions of the supported JS engine shells is to run
jsvu
. Afterwards, you can run the
benchmark as follows:
akra dist/cli.js
vascriptcore dist/cli.js
idermonkey dist/cli.js
dist/cli.js
To run an individual benchmark rather than the entire suite via Node, pass the
--only
CLI flag:
m run build -- --env.only babel && npm run benchmark