loop vs if

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
loop
for (var i = 0; i < 100; i++) {
if (i !== null) {}
}
ready
loop with if
for (var i = 0; i < 100; i++) {
    if (i !== null) {}
if (i !== null) {}
}
ready

Revisions

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