Object.is vs ===

Benchmark created on


Setup

const obj1 = {}
const obj2 = {}

const sym1 = Symbol('1');
const sym2 = Symbol('2');

Test runner

Ready to run.

Testing in
TestOps/sec
Object.is
Object.is(obj1, obj2)
ready
Symbol
sym1 === sym2
ready

Revisions

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