Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
isEmpty empty array 5904431.5 Ops/sec
length empty array 12976394.0 Ops/sec
custom isEmpty empty array 4095134.2 Ops/sec
isEmpty array of strings 5904296.5 Ops/sec
length array of strings 12907124.0 Ops/sec
custom isEmpty array of strings 3457744.0 Ops/sec
isEmpty array of objects 5906289.0 Ops/sec
length empty array of objects 12957545.0 Ops/sec
custom isEmpty array of objects 3567380.0 Ops/sec
isEmpty empty string 7097361.5 Ops/sec
length empty string 12969916.0 Ops/sec
custom isEmpty empty string 5780473.0 Ops/sec
isEmpty filled string 7106348.5 Ops/sec
length filled string 12940872.0 Ops/sec
custom isEmpty filled string 5673340.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