Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Windows
Desktop
2 years ago
Test name Executions per second
not string 584044608.0 Ops/sec
length is 0 589290496.0 Ops/sec
not length 590825984.0 Ops/sec
string equals empty string 533509760.0 Ops/sec
string soft equals empty string 584050496.0 Ops/sec
not boolean 2208683.8 Ops/sec
length soft equals 0 583772160.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