Match Split

Benchmark created on


Preparation HTML

<script>
  var str = "adium://Foo/Bar";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Match
str.match(/^adium:\/\/([^\/]+)/)[1];
ready
Split
str.split('/')[2];
ready
Match 2
str.match(/\/\/([^\/]+)/)[1];
ready

Revisions

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