Perfome
CLI for running benchmarks.
Installation
npm install -g perfome
Running benchmarks
You can run the benchmarks using command line, as follows:
perfome node --folder path/to/the/folder
Perfome
will assume that you have implementations
and benchmarks
folders under your "performance-folder".
If you want to have custom folder in place (for benchmarks and implementations), you can do:
perfome node --implementations path/to/the/implementations --benchmarks path/to/the/benchmarks
Running benchmarks in the browser is similar:
perfome browser --folder path/to/the/folder
or
perfome browser --implementations path/to/the/implementations --benchmarks path/to/the/benchmarks
perfome.json
If you don't want to specify command line arguments every time you run benchmarks, you will need to
create perfome.json
file.
If you want to keep your henchmarks and implementations separately, you could:
You can define custom implementations and benchmarks files' matchers, like so:
You can define custom normalizer, like so:
var implementations = ; { }
Happy benchmarking!