Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Mac OS X 10.15
Desktop
3 months ago
Test name Executions per second
isEmpty empty array 5347750.0 Ops/sec
length empty array 8182340.0 Ops/sec
custom isEmpty empty array 5928101.5 Ops/sec
isEmpty array of strings 5099799.0 Ops/sec
length array of strings 7927615.5 Ops/sec
custom isEmpty array of strings 3537372.5 Ops/sec
isEmpty array of objects 5137556.0 Ops/sec
length empty array of objects 8114858.5 Ops/sec
custom isEmpty array of objects 5826167.0 Ops/sec
isEmpty empty string 6596802.0 Ops/sec
length empty string 7444999.0 Ops/sec
custom isEmpty empty string 4922654.0 Ops/sec
isEmpty filled string 6573739.5 Ops/sec
length filled string 7843720.0 Ops/sec
custom isEmpty filled string 4771349.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


;