pre-increment vs post-increment (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var i = 0;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
pre-increment
++i;
ready
post-increment
i++;
ready
+=
i += 1;
ready
ordinary assignment
i = i + 1;
ready

Revisions

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