Initializing variable in for loop (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
In loop
for (var i = 0; i < 10000; i++) {}
ready
outside loop
var i = 0;
for (i = 0; i < 10000; i++) {}
ready
inside and outside loop
var i;

for (i = 0; i < 10000; i++) {}
ready

Revisions

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