Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
isEmpty empty array 4978956.0 Ops/sec
length empty array 10692980.0 Ops/sec
custom isEmpty empty array 3647810.5 Ops/sec
isEmpty array of strings 5006453.5 Ops/sec
length array of strings 10865642.0 Ops/sec
custom isEmpty array of strings 2872656.5 Ops/sec
isEmpty array of objects 4946656.5 Ops/sec
length empty array of objects 10539726.0 Ops/sec
custom isEmpty array of objects 3086619.5 Ops/sec
isEmpty empty string 6126710.5 Ops/sec
length empty string 10473003.0 Ops/sec
custom isEmpty empty string 4857593.5 Ops/sec
isEmpty filled string 5988131.5 Ops/sec
length filled string 10735190.0 Ops/sec
custom isEmpty filled string 4464094.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


;