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
Go 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:
one year 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
set
111/s
structuredClone
42/s
View exact numbers
Test name
Executions per second
✓
set
111 Ops/sec
structuredClone
42 Ops/sec
Related benchmarks
Set from array vs .add
Set merge
set vs array iterationgfgdhahtfdgcvfgshjrhdgfd
TestLoop
Comments
Confirm delete:
Do you really want to delete benchmark?