Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36
Chrome 102
Linux
Desktop
2 years ago
Test name Executions per second
not string 697843072.0 Ops/sec
length is 0 159922080.0 Ops/sec
not length 160602736.0 Ops/sec
string equals empty string 166678848.0 Ops/sec
string soft equals empty string 168173776.0 Ops/sec
not boolean 3237631.5 Ops/sec
length soft equals 0 168021056.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