Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Chrome 95
Windows
Desktop
3 years ago
Test name Executions per second
not string 770170624.0 Ops/sec
length is 0 765940928.0 Ops/sec
not length 772041024.0 Ops/sec
string equals empty string 775793024.0 Ops/sec
string soft equals empty string 772291328.0 Ops/sec
not boolean 2221934.8 Ops/sec
length soft equals 0 773918464.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