Created
June 17, 2015 06:17
-
-
Save floatdrop/9966f84c4bef5e1e9b01 to your computer and use it in GitHub Desktop.
Compare split performance
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
// npm i matcha -g | |
// matcha bench.js | |
bench('a', function() { | |
'a'.split('.'); | |
}); | |
bench('a.b', function() { | |
'a.b'.split('.'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment