Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Array.prototype.slice vs _.take
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
Browser:
Firefox 125
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Lodash take
89.4M/s
Array.prototype.slice
29.6M/s
View exact numbers
Test name
Executions per second
✓
Lodash take
89,395,456 Ops/sec
Array.prototype.slice
29,572,556 Ops/sec
HTML Preparation code:
<script src="lodash.js"></script>
Script Preparation code:
var array = [...Array(1000).keys()];
Tests:
Lodash take
_.take(55,77)
Array.prototype.slice
array.slice(55,77)