HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 65 community runs

Desktop Results:
Chrome 56 runs
length array of strings
13.4M/s
length empty array
13.3M/s
length array of objects
13.3M/s
isEmpty array of objects
6.1M/s
isEmpty empty array
6.1M/s
isEmpty array of strings
6.0M/s

Fastest: length array of strings (2.2x faster)

View exact numbers
  • length array of strings: 13,394,050 ops/sec
  • length empty array: 13,346,432 ops/sec
  • length array of objects: 13,277,670 ops/sec
  • isEmpty array of objects: 6,071,673 ops/sec
  • isEmpty empty array: 6,068,994 ops/sec
  • isEmpty array of strings: 6,048,036 ops/sec
Firefox 9 runs
length array of strings
13.9M/s
length array of objects
13.9M/s
length empty array
13.7M/s
isEmpty array of objects
10.0M/s
isEmpty array of strings
9.8M/s
isEmpty empty array
9.7M/s

Fastest: length array of strings (1.4x faster)

View exact numbers
  • length array of strings: 13,922,714 ops/sec
  • length array of objects: 13,915,781 ops/sec
  • length empty array: 13,655,184 ops/sec
  • isEmpty array of objects: 10,034,676 ops/sec
  • isEmpty array of strings: 9,794,017 ops/sec
  • isEmpty empty array: 9,708,181 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    isEmpty empty array
    length empty array
    isEmpty array of strings
    length array of strings
    isEmpty array of objects
    length array of objects

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Chrome 141 on Mac OS X 10.15.7
View result in a separate tab
length empty array
94.9M/s
length array of objects
92.3M/s
length array of strings
91.7M/s
isEmpty array of objects
21.1M/s
isEmpty empty array
21.1M/s
isEmpty array of strings
21.0M/s
View exact numbers
Test name Executions per second
length empty array 94,855,456 Ops/sec
length array of objects 92,250,984 Ops/sec
length array of strings 91,710,008 Ops/sec
isEmpty array of objects 21,141,196 Ops/sec
isEmpty empty array 21,140,068 Ops/sec
isEmpty array of strings 21,024,036 Ops/sec