Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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:
9 months ago
Benchmark engine:
Benchmark.js
Uint32
718.9M/s
Normal
674.1M/s
Uint32Array
20K/s
View exact numbers
Test name
Executions per second
✓
Uint32
718,903,168 Ops/sec
Normal
674,071,424 Ops/sec
Uint32Array
19,875 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; }