string.split vs array creation (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var a = new Array();
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
string.split
a = "done fail isResolved isRejected promise then always pipe".split(" ");
ready
array literal
a = ['done', 'fail', 'isResolved', 'isRejected', 'promise', 'then', 'always', 'pipe'];
ready
array object
a = new Array('done', 'fail', 'isResolved', 'isRejected', 'promise', 'then', 'always', 'pipe');
ready

Revisions

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