++ vs +1 (v2)

Revision 2 of this benchmark created by Jean-Philippe Martin on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
++
i++;
ready
+
i = i + 1;
ready
+=
i += 1;
ready
++ v2
++i;
ready

Revisions

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

  • Revision 1: published by Dan DeFelippi on
  • Revision 2: published by Jean-Philippe Martin on