Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/105.0.5195.100 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 105
iOS 16.0
Mobile
2 years ago
Test name Executions per second
not string 65581136.0 Ops/sec
length is 0 63816492.0 Ops/sec
not length 96377264.0 Ops/sec
string equals empty string 59973340.0 Ops/sec
string soft equals empty string 58599464.0 Ops/sec
not boolean 3027623.0 Ops/sec
length soft equals 0 52791956.0 Ops/sec
Tests:
  • not string

  • length is 0

  • not length

  • string equals empty string

  • string soft equals empty string

  • not boolean

  • length soft equals 0