Object vs undefined

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
object
const foo = false ? {bogus: true}: {};
const bar = {...foo};
ready
undefined
const foo = false ? {bogus: true}: undefined;
const bar = {...foo};
ready

Revisions

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