For While (v2)

Revision 2 of this benchmark created on


Description

is for faster than while

Preparation HTML

<script>
  var testlength = 100;
  var currentloop = 0;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
While Test
while (currentloop <= testlength) {}
ready
For Test
for (int x = 0; x <= testlength; x++) {}
ready

Revisions

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