bool-vs-int-2 (v5)

Revision 5 of this benchmark created on


Preparation HTML

<script>
    var a = true;
    var b = false;
    var c = 1;
    var d = 0;
    function bluh() {}
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Conditional - Bool
if(a) bluh();
if(b) bluh();
ready
Conditional - Int
if(c == 1) bluh();
if(d == 1) bluh();
ready
Conditional - Int 2
if(c) bluh();
if(d) bluh();
ready
One or Zero
if(1) bluh();
if(0) bluh();
ready

Revisions

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