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
Test name
Executions per second
simple var inc
184.1 Ops/sec
Float32Array var inc
84.7 Ops/sec
Uint32Array var inc
199.7 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]++; }