Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array.prototype.slice vs _.take 1M
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
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
Browser:
Yandex Browser 25
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Array.prototype.slice
15K/s
Lodash take
6K/s
View exact numbers
Test name
Executions per second
✓
Array.prototype.slice
14,910 Ops/sec
Lodash take
6,147 Ops/sec
HTML Preparation code:
<script src="lodash.js"></script>
Script Preparation code:
var array = [...Array(1000000).keys()];
Tests:
Lodash take
_.take(array,77000)
Array.prototype.slice
array.slice(0,77000)