Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
isEmpty empty array 4551818.0 Ops/sec
length empty array 11268417.0 Ops/sec
custom isEmpty empty array 3673744.8 Ops/sec
isEmpty array of strings 5122430.0 Ops/sec
length array of strings 11297584.0 Ops/sec
custom isEmpty array of strings 3077671.2 Ops/sec
isEmpty array of objects 5190641.0 Ops/sec
length empty array of objects 11427591.0 Ops/sec
custom isEmpty array of objects 3160003.2 Ops/sec
isEmpty empty string 6125621.5 Ops/sec
length empty string 11295902.0 Ops/sec
custom isEmpty empty string 5039316.0 Ops/sec
isEmpty filled string 6092250.0 Ops/sec
length filled string 11200515.0 Ops/sec
custom isEmpty filled string 4679117.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


;