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
one month ago
Test name Executions per second
!! (number) 238110400.0 Ops/sec
Boolean() (number) 21332050.0 Ops/sec
ternary (number) 246353800.0 Ops/sec
!! (string) 225319900.0 Ops/sec
Boolean() (string) 21213440.0 Ops/sec
ternary (string) 224288900.0 Ops/sec
Tests:
  • !! (number)

  • Boolean() (number)

  • ternary (number)

  • !! (string)

  • Boolean() (string)

  • ternary (string)