n = n + 1 or n++ (v10)

Revision 10 of this benchmark created on


Preparation HTML

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

Teardown


    console.log(n);
  

Test runner

Ready to run.

Testing in
TestOps/sec
n = n + 1
n = n + 1
ready
n++
n++;
ready
++n
++n;
ready
n += 1
n += 1
ready

Revisions

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