bool-vs-int

Benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
Toggle - Bool
a = !a;
b = !b;
ready
Toggle - Int
c = 1-c;
d = 1-d;
ready

Revisions

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