inequality

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    function f1(a, b) { return a != b; };
    function f1b(a, b) { return a !== b; };
    function f2(a, b) { return a < b || a > b; };
};
</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
inequal
f1(1, 2);
f1(2, 1);
f1(1, 1);
pending…
greater or smaller
f2(1, 2);
f2(2, 1);
f2(1, 1);
pending…
strict inequality
f1b(1, 2);
f1b(2, 1);
f1b(1, 1);
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