Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Windows
Desktop
3 years ago
Test name Executions per second
isEmpty empty array 4106891.5 Ops/sec
length empty array 6762148.0 Ops/sec
custom isEmpty empty array 3291521.2 Ops/sec
isEmpty array of strings 4066030.5 Ops/sec
length array of strings 6890833.0 Ops/sec
custom isEmpty array of strings 2585865.0 Ops/sec
isEmpty array of objects 3999424.5 Ops/sec
length empty array of objects 6647939.0 Ops/sec
custom isEmpty array of objects 2308156.2 Ops/sec
isEmpty empty string 5806817.0 Ops/sec
length empty string 6920762.5 Ops/sec
custom isEmpty empty string 4280238.5 Ops/sec
isEmpty filled string 5915111.5 Ops/sec
length filled string 6806084.0 Ops/sec
custom isEmpty filled string 3853163.5 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