'use strict'; /** * Benchmark related modules. */ var benchmark = require('benchmark'); /** * Preparation code. */ ( new benchmark.Suite() ).add('', function() { }).add('', function() { }).on('cycle', function cycle(e) { console.log(e.target.toString()); }).on('complete', function completed() { console.log('Fastest is %s', this.filter('fastest').map('name')); }).run({ async: true });