Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Windows
Desktop
9 months ago
Test name Executions per second
!! (number) 983688192.0 Ops/sec
Boolean() (number) 1067741056.0 Ops/sec
ternary (number) 986182336.0 Ops/sec
!! (string) 989670912.0 Ops/sec
Boolean() (string) 1041599424.0 Ops/sec
ternary (string) 984106688.0 Ops/sec
Tests:
  • !! (number)

  • Boolean() (number)

  • ternary (number)

  • !! (string)

  • Boolean() (string)

  • ternary (string)