for loop: create functions (v286)

Revision 286 of this benchmark created on


Setup

var array = [];

Test runner

Ready to run.

Testing in
TestOps/sec
simple iteration
for (var i = 0; i < 10000; i++) {
 array.push(i);
};
ready
inner function
for (var i = 0; i < 10000; i++) {
 var anon = function(){
   array.push(i);
 }
 anon();
};
ready

Revisions

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