bool-vs-int (v4)

Revision 4 of this benchmark created on


Preparation HTML

<script>
  var a = true;
  var b = false;
  var c = 1;
  var d = 0;
  var e = 0;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Check - Bool
if (a) {
  e = 1;
}
if (b) {
  e = 2;
}
 
ready
Check - Int
if (c) {
  e = 3;
}

if (d) {
  e = 4;
}
 
ready

Revisions

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