bool-vs-int-2

JavaScript performance comparison

Test case created

Preparation code

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

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Conditional - Bool
if(a) bluh();
if(b) bluh();
pending…
Conditional - Int
if(c == 1) bluh();
if(d == 1) bluh();
pending…
Conditional - Int 2
if(c) bluh();
if(d) bluh();
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment