Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
7 months ago
Test name Executions per second
!! (number) 77771820.0 Ops/sec
Boolean() (number) 7598538.0 Ops/sec
ternary (number) 72693800.0 Ops/sec
!! (string) 71930640.0 Ops/sec
Boolean() (string) 7128023.0 Ops/sec
ternary (string) 73135760.0 Ops/sec
Tests:
  • !! (number)

  • Boolean() (number)

  • ternary (number)

  • !! (string)

  • Boolean() (string)

  • ternary (string)