DataView Fill

Benchmark created on


Setup

const ab = new ArrayBuffer(1_000_000)

Test runner

Ready to run.

Testing in
TestOps/sec
Int32Array
new Int32Array(ab).fill(0)
ready
Uint32Array
new Uint32Array(ab).fill(0)
ready
Int8Array
new Int8Array(ab).fill(0)
ready
UInt8Array
new Uint8Array(ab).fill(0)
ready
Float32Array
new Float32Array(ab).fill(0)
ready
Float64Array
new Float64Array(ab).fill(0)
ready
BigInt64Array
new BigInt64Array(ab).fill(0n)
ready
BigUint64Array
new BigUint64Array(ab).fill(0n)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.