Split by space or comma

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
space
var l = "";
for(var i=0; i<999999; i++){l+=i; if(i<999999){l+=" ";}}
l.split(" "); 
ready
comma
var l = "";
for(var i=0; i<999999; i++){l+=i; if(i<999999){l+=",";}}
l.split(","); 
ready

Revisions

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