TypedArray.slice() vs new TypedArray()

Benchmark created on


Setup

const a = new Uint8Array();

Test runner

Ready to run.

Testing in
TestOps/sec
slice
const b = a.slice();
ready
new
const c = new a.prototype.constructor(a.length);
ready

Revisions

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