Skip to content

Latest commit

 

History

History

bench

Benchmarks

New benchmark test

  1. Install dependencies: npm i
  2. Install python and gnuplot (e.g. brew install gnuplot) if you want to see charts
  3. Prepare json data files and template (you can request large production bemjson files from @miripiruni)
  4. Run test

node runner.js --rev1 d53646f2c340b5496fbd75a5313e3284b58e238d --rev2 d53646f2c340b5496fbd75a5313e3284b58e238d --bemjson 1000 --dataPath ~/web-data/data --templatePath ~/web-data/templates.js

--dataPath and --templatePath should point to your data files and template

The results of test would be directory dat-d5364-and-d5364 with svg histogram and STDOUT with some numbers.

Old test

Or you can run old test:

  1. Make sure the bench/package.json has proper git hash of bem-xjst before running!
  2. Run node run.js --compile --compare --min-samples 1000

Benchmark help:

node run.js --help