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
Go 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
spread test
139K/s
structured clone
107K/s
View exact numbers
Test name
Executions per second
✓
spread test
138,708 Ops/sec
structured clone
106,842 Ops/sec
Related benchmarks
Array push vs Spread
comparing push vs spread one by one
Array from vs Spread es6
toSpliced vs Spread
Comments
Confirm delete:
Do you really want to delete benchmark?