push-vs-index

Benchmark created by Preda on


Test runner

Ready to run.

Testing in
TestOps/sec
index based
var r = [];
  for( var j=0 ; j<10000 ; j++ ) { 
    r[j++] = 'frog'; 
  }
ready
push
var r = [];
  for( var j=0 ; j<10000 ; j++ ) { 
    r.push('frog'); 
  }
ready

Revisions

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

  • Revision 1: published by Preda on