Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Chrome 93
Windows
Desktop
3 years ago
Test name Executions per second
isEmpty empty array 2752439.0 Ops/sec
length empty array 5930529.0 Ops/sec
custom isEmpty empty array 1665613.0 Ops/sec
isEmpty array of strings 2456774.2 Ops/sec
length array of strings 5786019.0 Ops/sec
custom isEmpty array of strings 1395546.1 Ops/sec
isEmpty array of objects 2391938.0 Ops/sec
length empty array of objects 5643831.0 Ops/sec
custom isEmpty array of objects 1366111.8 Ops/sec
isEmpty empty string 2791759.8 Ops/sec
length empty string 4858741.0 Ops/sec
custom isEmpty empty string 1832970.8 Ops/sec
isEmpty filled string 2716136.0 Ops/sec
length filled string 5583655.0 Ops/sec
custom isEmpty filled string 2068626.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • isEmpty empty array

  • length empty array

  • custom isEmpty empty array

  • isEmpty array of strings

  • length array of strings

  • custom isEmpty array of strings

  • isEmpty array of objects

  • length empty array of objects

  • custom isEmpty array of objects

  • isEmpty empty string

  • length empty string

  • custom isEmpty empty string

  • isEmpty filled string

  • length filled string

  • custom isEmpty filled string


;