perf

Benchmark created on


Setup

const strs = "'aaaa'!aaaaa"

Test runner

Ready to run.

Testing in
TestOps/sec
a
const str = strs.split(/^'.*'!/).pop();
console.log(str)
ready
b
const str = strs.match(/^'.*'!(.*)$/).pop();
console.log(str)
ready
c
const str = strs.replace(/^'.*'!(.*)$/, "$1");
console.log(str)
ready

Revisions

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