Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Android
Desktop
one year ago
Test name Executions per second
Number.isNaN + parseInt 1854359.1 Ops/sec
String includes 1014799168.0 Ops/sec
Number.isNaN + casting 3602102.2 Ops/sec
Equality + casting 1022296256.0 Ops/sec
Regex 25064788.0 Ops/sec
Tests:
  • Number.isNaN + parseInt

  • String includes

  • Number.isNaN + casting

  • Equality + casting

  • Regex