@snek/benchmark
v0.0.1
Published
benchmark like a pro, wherever you go
Downloads
3
Readme
benchmark
This package is still very experimental
const Benchmark = require('@snek/benchmark');
const s = new Benchmark.Suite();
s.add('RegExp#test', () => { /o/.test('Hello, World!'); });
s.add('String#indexOf', () => { !!'Hello, World'.indexOf('o'); });
s.add('String#includes', () => { 'Hello, World!'.includes('o'); });
s.on('cycle', console.log);
s.run();