++ vs +=1

Benchmark created by Illmatar on


Setup

var i;

Test runner

Ready to run.

Testing in
TestOps/sec
++
for(i = 0; i < 1000000; i++){};
ready
+=1
for(i = 0; i < 1000000; i+=1){};
ready

Revisions

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

  • Revision 1: published by Illmatar on