find-config
Version:
Find the first config file matching a given name in the current directory or the nearest ancestor directory.
14 lines (12 loc) • 417 B
JavaScript
var Benchmark = require('benchmark');
new Benchmark.Suite()
.add('find-config', require('./find-config.bench'))
.add('findup-sync', require('./findup-sync.bench'))
.add('look-up', require('./look-up.bench'))
.on('cycle', function (event) {
console.log(String(event.target));
})
.on('complete', function () {
console.log('Fastest:', this.filter('fastest').map('name').join(', '));
})
.run({async: true});