Loop Counter (v11)

Revision 11 of this benchmark created by Ben Blank on


Description

check += against +

Preparation HTML

<script>
  var l_count1 = 0;
  var l_count2 = 0;
  var l_count3 = 0;
  var l_count4 = 0.5;
  var l_count5 = 0.5;
  var l_count6 = 0.5;
  var l_count7 = 4294967296;
  var l_count8 = 4294967296;
  var l_count9 = 4294967296;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
int += 1
l_count1 += 1;
ready
int + 1
l_count2 = l_count2 + 1;
ready
int++
l_count3++;
ready
float += 1
l_count4 += 1;
ready
float + 1
l_count5 = l_count5 + 1
ready
float++
l_count6++;
ready
bigint += 1
l_count7 += 1;
ready
bigint + 1
l_count8 = l_count8 + 1
ready
bigint++
l_count9++;
ready

Revisions

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