strict-equal

JavaScript performance comparison

Test case created by Samuel

Preparation code

<script>
var i = 1, f = 1.1, s = "1", o = {bar: 1}, undef;
</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
Int Triple
i === 1;
pending…
Int Double
i == 1;
pending…
Float Triple
f === 1.1;
pending…
Float Double
f == 1.1;
pending…
String Triple
s === "1";
pending…
String Double
s == "1";
pending…
undef Triple
undef === undefined;
pending…
undef Double
undef == undefined;
pending…
prop Triple
o.foo === undefined;
pending…
prop Double
o.foo == undefined;
pending…
bar Triple
o.bar !== undefined
pending…
bar Double
o.bar != undefined
pending…

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

Compare results of other browsers

0 comments

Add a comment