Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
object creation spread vs init
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Browser:
Chrome 126
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
spread
15726475.0 Ops/sec
initializing
158054624.0 Ops/sec
Tests:
spread
const x1 = {x1: 1}; const x2 = {x2: 1}; const x3 = {x3: 1}; const x4 = {x4: 1}; const result = { ...x1, ...x2, ...x3, ...x4 }
initializing
const result = { x1: 1, x2: 1, x3: 1, x4: 1 }