Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
lodash assign vs spread operator
lodash assign vs spread operator
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 15
Operating system:
iOS 15.4.1
Device Platform:
Mobile
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
native
12.1M/s
lodash
4.6M/s
View exact numbers
Test name
Executions per second
✓
native
12,064,037 Ops/sec
lodash
4,628,860 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var person = {name: 'Frederick', lastName: 'Corcino Alejo'};
Tests:
lodash
let copied = _.assign({}, person, {age: 15});
native
let copied = {...person};