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
one year ago
Test name Executions per second
isEmpty empty array 6339162.0 Ops/sec
length empty array 14565225.0 Ops/sec
custom isEmpty empty array 4724323.5 Ops/sec
isEmpty array of strings 6386431.0 Ops/sec
length array of strings 14621481.0 Ops/sec
custom isEmpty array of strings 3962429.8 Ops/sec
isEmpty array of objects 6384031.5 Ops/sec
length empty array of objects 14556654.0 Ops/sec
custom isEmpty array of objects 3965915.2 Ops/sec
isEmpty empty string 5516412.0 Ops/sec
length empty string 14692755.0 Ops/sec
custom isEmpty empty string 6470420.5 Ops/sec
isEmpty filled string 7804552.0 Ops/sec
length filled string 14630018.0 Ops/sec
custom isEmpty filled string 6407433.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