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 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0
Browser:
Firefox 130
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Lodash take
179.5M/s
Array.prototype.slice
53.3M/s
View exact numbers
Test name
Executions per second
✓
Lodash take
179,486,672 Ops/sec
Array.prototype.slice
53,328,976 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)