++ | +=1

Benchmark created on


Setup

var i = 1;
    var times = 100000000;

Test runner

Ready to run.

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

Revisions

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