Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Windows
Desktop
2 years ago
Test name Executions per second
not string 633350592.0 Ops/sec
length is 0 102684696.0 Ops/sec
not length 108882056.0 Ops/sec
string equals empty string 111646224.0 Ops/sec
string soft equals empty string 117768584.0 Ops/sec
not boolean 3240853.5 Ops/sec
length soft equals 0 113753728.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