plus one vs plusplus (v12)

Revision 12 of this benchmark created by Steve Francis on


Preparation HTML

<script>
  var a = 0;
  var b = 1;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Plus 1
a += 1;
ready
PlusPlus
a++;
ready
Plus Variable
a += b;
ready
Reassignment
a = a + 1;
 
ready
Pre increment
++a;
 
ready
Reinitialize
a = 0;
a += 1;
 
ready

Revisions

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