array join vs string

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
array
for(var i = 0; i < 100000; i++){
var s = "as" + ";" + "as" + ";"+ "as"+ ";"+"as" + ";"+"as";
}
ready
string
for(var i = 0; i < 100000; i++){
var s = new Array("as","as","as","as","as").join(";");
}
ready

Revisions

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