Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
new TypedArray() vs TypedArray.of()hgcvyuhj
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 141
Operating system:
Android
Device Platform:
Mobile
Date tested:
6 months ago
Test name
Executions per second
new TypedArray
1545613.8 Ops/sec
TypedArray.of
2108688.5 Ops/sec
new TypedArray cached
1556481.1 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let cache = [1,2,3,4,5]
Tests:
new TypedArray
new Uint16Array([1,2,3,4,5]) new Uint32Array([1,2,3,4,5]) new Float32Array([1,2,3,4,5])
TypedArray.of
Uint16Array.of(1,2,3,4,5) Uint32Array.of(1,2,3,4,5) Float32Array.of(1,2,3,4,5)
new TypedArray cached
new Uint16Array(cache) new Uint32Array(cache) new Float32Array(cache)