Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Typed Array Copy, set vs structuredClone
(version: 1)
Comparing performance of:
set vs structuredClone
Created:
one year ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const a = new Uint8Array(4 * 1920 * 1080); for (let i = 0; i < a.length; i++) { a[i] = 64 }
Tests:
set
const b = new Uint8Array(a.length); b.set(a);
structuredClone
const c = structuredClone(a);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
set
structuredClone
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 months ago
)
User agent:
Mozilla/5.0 (Android 10; Mobile; rv:136.0) Gecko/136.0 Firefox/136.0
Browser/OS:
Firefox Mobile 136 on Android
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
set
111.1 Ops/sec
structuredClone
41.5 Ops/sec
Related benchmarks:
For loop initialization.
UInt8Array vs cast to array index access
UInt8Array vs cast to array index access 10k
TestArrayAllocationv2
set vs array iteration 100kf
Set from array vs .add
Set merge
set vs array iterationgfgdhahtfdgcvfgshjrhdgfd
TestLoop
Comments
Confirm delete:
Do you really want to delete benchmark?