startsWith stub indexOf vs regex (v6)

Revision 6 of this benchmark created on


Description

Regular expression may be more efficient than primitive call on basic purposes.

Test runner

Ready to run.

Testing in
TestOps/sec
.indexOf
!'R:EUR='.indexOf('R:');
ready
//.test
/^R:/.test('R:EUR=');
ready
.startsWith
'R:EUR='.startsWith('R:');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.