Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
number vs float32array vs Uint32Array test 2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser:
Firefox 136
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Uint32Array var inc
200/s
simple var inc
184/s
Float32Array var inc
85/s
View exact numbers
Test name
Executions per second
✓
Uint32Array var inc
200 Ops/sec
simple var inc
184 Ops/sec
Float32Array var inc
85 Ops/sec
Script Preparation code:
var counter = 0; var taCounterf32 = new Float32Array(1); var taCounterui32 = new Uint32Array(1);
Tests:
simple var inc
for (let i = 0; i < 2_000_000; i++) { counter++; }
Float32Array var inc
for (let i = 0; i < 2_000_000; i++) { taCounterf32[0]++; }
Uint32Array var inc
for (let i = 0; i < 2_000_000; i++) { taCounterui32[0]++; }