Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Instantiation of ArrayBuffer vs Normal
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Browser:
Firefox 145
Operating system:
Linux
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
Uint32
718903168.0 Ops/sec
Normal
674071424.0 Ops/sec
Uint32Array
19874.7 Ops/sec
Script Preparation code:
var last = 100000;
Tests:
Uint32
for (let i; i < last; i++) { const x = new ArrayBuffer(4); const y = new Uint32Array(x); y[0] = 16777215; }
Normal
for (let i; i < last; i++) { var y = 16777215; }
Uint32Array
const x = new ArrayBuffer(4 * last); const y = new Uint32Array(x); last = y.length; for (let i; i < last; i++) { y[0] = 16777215; }