Object.isFrozen

Benchmark created on


Description

Test Object.isFrozen perf

Setup

const a = {};
const b = [];
Object.freeze(a);
Object.freeze(b);

Test runner

Ready to run.

Testing in
TestOps/sec
isFrozen
Object.isFrozen(a);
Object.isFrozen(b);
ready
typeof
typeof a === 'Object';
typeof b === 'Object';
ready
isArray
Array.isArray(a);
Array.isArray(b);
ready

Revisions

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