test() vs match()

Benchmark created on


Preparation HTML

<script>
  var opt="vkm;vkv;vkaw;"
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
match()
if(opt.match(/vkv/)){
        /* ... */
}
ready
test()
if(/vkv/.test(opt)){
        /* ... */
}
ready

Revisions

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