Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test of spread vs structured clone
(version: 1)
test
Comparing performance of:
spread test vs structured clone
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
testArray = new Array(10000).map(() => ({ pagination: 'blah blah blah' }));
Tests:
spread test
return [...testArray]
structured clone
return structuredClone(testArray)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
spread test
structured clone
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
spread test
138708.0 Ops/sec
structured clone
106842.1 Ops/sec
Related benchmarks:
Fill vs spread
Array push vs Spread
comparing push vs spread one by one
Create empty array
Array from vs Spread es6
unshift vs spread
push vs new/spread
spread or push on large array
toSpliced vs Spread
Comments
Confirm delete:
Do you really want to delete benchmark?