Comparison of comparisons (v19)

Revision 19 of this benchmark created on


Description

Compares the performance of == and ===.

Setup

var a = 'hello';
    var b = 'world';
    var c = 'hello';
    var d = 1;
    var e = 2;
    var f = '1';

Test runner

Ready to run.

Testing in
TestOps/sec
Identity
a === b;
a === c;
ready
Equality
a == b;
a == c;
ready
Identity Number
d === e;
d === f;
ready
Equality Number
d == e;
d == f;
ready

Revisions

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