Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
array.indexOf 82038384.0 Ops/sec
in array 170567792.0 Ops/sec
in map 175120224.0 Ops/sec
char code 185987744.0 Ops/sec
!isNaN 15939185.0 Ops/sec
+num < 10 172903184.0 Ops/sec
equal all 171324704.0 Ops/sec
Tests:
  • array.indexOf

  • in array

  • in map

  • char code

  • !isNaN

  • +num < 10

  • equal all


;