I tried benchmark.js
while it appears to be running a benchmark and showing me fastest test, i don't get how to get a nice report out of it I tried this:
suite.add('My#test', function() {
console.log("test")
}).on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').map('name'));
console.log('stats: ' + suite.stats) // but stats seems undefined, do i miss anything? how come I couldn't find a guide on showing how to print stats?
}).run({ 'async': true });
stats seems undefined, do i miss anything? how come I couldn't find a guide on showing how to print stats? how do i get a report showing me how much time it took to run the test for each method i was testing, what was median, number of errors and all this summary all together? thanks.