Skip to content

Instantly share code, notes, and snippets.

@indus
Last active August 12, 2016 12:25
Show Gist options
  • Save indus/40c684c4f53d8e05d125f3d74bd1ffdc to your computer and use it in GitHub Desktop.
Save indus/40c684c4f53d8e05d125f3d74bd1ffdc to your computer and use it in GitHub Desktop.
bjs\ntest
suite.add('RegExp#test', function() {
/o/.test('Hello World!');
})
.add('String#indexOf', function() {
'Hello World!'.indexOf('o') > -1;
})
.add('String#match', function() {
!!'Hello World!'.match(/o/);
})
suite.add('RegExp#test', function() {
/o/.test('Hello World!');
})
.add('String#indexOf', function() {
'Hello World!'.indexOf('o') > -1;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment