Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Copy ArrayBuffer: DataView vs per bytes
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/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
per bytes
67164104.0 Ops/sec
DataView
1388.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
var size = 0xFFFF; var source = new Uint8Array(size); var target = new Uint8Array(size); for (let i = 0; i < size; i++) { source[i] = 100*Math.random(); }
Tests:
per bytes
for (let i; i < size; i++) { target[i] = source[i]; }
DataView
var cloned = new ArrayBuffer(source.byteLength); var view = new DataView(cloned); for (var byteIndex = 0; byteIndex < source.byteLength; byteIndex++) { view.setInt8(byteIndex, source[byteIndex]); }