Run details:
Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
Number.isNaN + parseInt 948236.4 Ops/sec
String includes 842754304.0 Ops/sec
Number.isNaN + casting 1815389.6 Ops/sec
Equality + casting 768263104.0 Ops/sec
Regex 13201500.0 Ops/sec
Tests:
  • Number.isNaN + parseInt

  • String includes

  • Number.isNaN + casting

  • Equality + casting

  • Regex