Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Lodash Union vs Spread
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser:
Chrome 138
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Lodash union
86.7M/s
Spread Operator
0/s
View exact numbers
Test name
Executions per second
✓
Lodash union
86,710,472 Ops/sec
Spread Operator
0 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.20/lodash.min.js'></script>
Script Preparation code:
var arr1 = new Array(100000000).fill(0); var arr2 = new Array(100000000).fill(1);
Tests:
Spread Operator
[...arr1, arr2]
Lodash union
_.union(arr1, arr2)