Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Object.assign vs spred
Foo
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0
Browser:
Firefox 152
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
2 months ago
Benchmark engine:
Benchmark.js
Object.assign
30.7M/s
spred
17.2M/s
View exact numbers
Test name
Executions per second
✓
Object.assign
30,748,264 Ops/sec
spred
17,154,770 Ops/sec
Tests:
Object.assign
const a = {a: 'foo', b: true, c: 42}; const b = Object.assign({d: '2'}, a);
spred
const a = {a: 'foo', b: true, c: 42}; const b = {...{d: '2'}, ...a};