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) 986763008.0 Ops/sec
Boolean() (number) 984892480.0 Ops/sec
ternary (number) 989451904.0 Ops/sec
!! (string) 989081152.0 Ops/sec
Boolean() (string) 982467200.0 Ops/sec
ternary (string) 984012736.0 Ops/sec
Tests:
  • !! (number)

  • Boolean() (number)

  • ternary (number)

  • !! (string)

  • Boolean() (string)

  • ternary (string)