Use nano.jar in perf/index.html.

Former-commit-id: a5a3d79dd2c940dd654d2c91cf80665d72b22080
This commit is contained in:
John-David Dalton
2012-05-20 05:26:39 -04:00
parent 8e2d972281
commit 88327aeba2
4 changed files with 20 additions and 5 deletions

View File

@@ -66,7 +66,7 @@
console.log('\n' + this.name + ':');
},
'onCycle': function(event) {
console.log(event.target.toString());
console.log(event.target + '');
},
'onComplete': function() {
var fastest = this.filter('fastest').pluck('name'),
@@ -93,9 +93,9 @@
else {
// report results
if (score.lodash >= score.underscore) {
console.log('\nLo-Dash is ' + (score.lodash / score.underscore).toFixed(2) + 'x faster than Underscore.\n');
console.log('\nLo-Dash is ' + (score.lodash / score.underscore).toFixed(2) + 'x faster than Underscore.');
} else {
console.log('\nUnderscore is ' + (score.underscore / score.lodash).toFixed(2) + 'x faster than Lo-Dash.\n');
console.log('\nUnderscore is ' + (score.underscore / score.lodash).toFixed(2) + 'x faster than Lo-Dash.');
}
}
}
@@ -191,6 +191,9 @@
/*--------------------------------------------------------------------------*/
if (Benchmark.platform + '') {
console.log(Benchmark.platform + '\n');
}
// start suites
suites[0].run();