-
-
Save vhf/ecd9dba814a4edd80680 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suite.add('#1 no tail call', function() { | |
factorial1(100); | |
}) | |
.add('#2 TCO/default params', function() { | |
factorial2(100); | |
}) | |
.add('#3 TCO/no default params', function() { | |
factorial3(100); | |
}) | |
.on('cycle', function(event) { | |
console.log(String(event.target)); | |
}) | |
.on('complete', function() { | |
console.log('Fastest is ' + this.filter('fastest').pluck('name')); | |
}) | |
.run({ 'async': true }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment