Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
isEmpty empty array 6354873.5 Ops/sec
length empty array 14495107.0 Ops/sec
custom isEmpty empty array 4729559.5 Ops/sec
isEmpty array of strings 6369231.0 Ops/sec
length array of strings 14567482.0 Ops/sec
custom isEmpty array of strings 3882635.2 Ops/sec
isEmpty array of objects 5012963.5 Ops/sec
length empty array of objects 9877771.0 Ops/sec
custom isEmpty array of objects 2957262.5 Ops/sec
isEmpty empty string 6725451.0 Ops/sec
length empty string 10294567.0 Ops/sec
custom isEmpty empty string 5055659.5 Ops/sec
isEmpty filled string 6575069.0 Ops/sec
length filled string 12300209.0 Ops/sec
custom isEmpty filled string 4943219.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


;