concat push (v3)

Revision 3 of this benchmark created on


Setup

var a = ['the quick brown fox', 'jumps over the lazy dog'];

Test runner

Ready to run.

Testing in
TestOps/sec
concat
a = a.concat(['the quick brown fox jumps', 'over the lazy dog'])
ready
push each
a.push('the quick brown fox jumps');
a.push('over the lazy dog');
ready
push all
a.push('the quick brown fox jumps', 'over the lazy dog');
ready
push array
var b = ['the quick brown fox jumps', 'over the lazy dog'] ;
a.push(b[0]);
a.push(b[1]);
ready
push-apply
a.push.apply(a, ['the quick brown fox jumps', 'over the lazy dog']);
ready

Revisions

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