Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203
Chrome 115
Windows
Desktop
one year ago
Test name Executions per second
double-bang-zero 945292544.0 Ops/sec
cast-zero 8246185.5 Ops/sec
double-bang-non-zero 944831488.0 Ops/sec
cast-non-zero 8395465.0 Ops/sec
double-bang-empty-string 945352128.0 Ops/sec
cast-empty-string 8340898.5 Ops/sec
double-bang-string 941661696.0 Ops/sec
cast-string 4207856.5 Ops/sec
Tests:
  • double-bang-zero

  • cast-zero

  • double-bang-non-zero

  • cast-non-zero

  • double-bang-empty-string

  • cast-empty-string

  • double-bang-string

  • cast-string