Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
!! (number) 238110416.0 Ops/sec
Boolean() (number) 21332050.0 Ops/sec
ternary (number) 246353776.0 Ops/sec
!! (string) 225319888.0 Ops/sec
Boolean() (string) 21213440.0 Ops/sec
ternary (string) 224288880.0 Ops/sec
Tests:
  • !! (number)

  • Boolean() (number)

  • ternary (number)

  • !! (string)

  • Boolean() (string)

  • ternary (string)