HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Array.prototype.slice
17.2M/s
Lodash take
13.0M/s

Fastest: Array.prototype.slice (1.3x faster)

View exact numbers
  • Array.prototype.slice: 17,202,518 ops/sec
  • Lodash take: 13,046,624 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
    Lodash take
    Array.prototype.slice

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 YaBrowser/25.6.0.0 Safari/537.36
Yandex Browser 25 on Windows
View result in a separate tab
Lodash take
162.0M/s
Array.prototype.slice
51.7M/s
View exact numbers
Test name Executions per second
Lodash take 162,028,368 Ops/sec
Array.prototype.slice 51,656,740 Ops/sec