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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Browser:
Chrome 142
Operating system:
Linux
Device Platform:
Desktop
Date tested:
6 months ago
Test name
Executions per second
new TypedArray
7252597.5 Ops/sec
TypedArray.of
7907828.0 Ops/sec
new TypedArray cached
6844364.5 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)