Comparison of comparisons (v17)

Revision 17 of this benchmark created on


Description

Compares the performance of == and === with objects.

Setup

var a = 'hello';
    var b = 'world';
    var c = 'hello';

Test runner

Ready to run.

Testing in
TestOps/sec
Identity
a === b;
a === c;
ready
Equality
a == b;
a == c;
ready

Revisions

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