concatperftest (v4)

Revision 4 of this benchmark created on


Description

Added push.apply test

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script>
  var a = [1, 2, 3, 4, 5, 6, 7, 8];
  var b = [1, 2, 3, 4, 5, 6, 7, 8];
  var c = [1, 2, 3, 4, 5, 6, 7, 8];
  
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
array concat
var e = a;
e = e.concat(b);
e = e.concat(c);
 
ready
array push
var e = a;
Array.prototype.push.apply(e,b);
Array.prototype.push.apply(e,c);

 
ready
jquery concat
var e = a;
jQuery.merge(e, b);
jQuery.merge(e, c);
 
ready

Revisions

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