string split regex vs non-regex (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var string = "thu ti choi   coisao     nao duoc ko ha";
  var re = /\s+/;
  var s = " ";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
regex
string.split(re)
ready
non-regex
string.split(s)
ready

Revisions

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