Which equals operator (== vs ===) is faster?
Is there a performance benefit to replacing == with ===?
2025 years ago
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6
Test name |
Executions per second |
test equality |
29049.7 Ops/sec |
test strict equality |
29369.4 Ops/sec |
Tests:
-
test equality
-
test strict equality
Open this result on MeasureThat.net