=== vs == (v2)

Revision 2 of this benchmark created on


Description

check on string and string vars, int and int vars

Setup

var str1 = "string", str2 = "string", str3 = str1;
    var int1 = 8, int2 = 2, int3 = int1;

Test runner

Ready to run.

Testing in
TestOps/sec
equality
"string" == "string";
str1 == str2;
str1 == str3;

8 == 8;
int1 == int2;
int1 == int3;
ready
identity
"string" === "string";
str1 === str2;
str1 === str3;

8 === 8;
int1 === int2;
int1 === int3;
ready

Revisions

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