obj vs set access performance

Benchmark created on


Setup

const a = {}
const b = new Set()

Test runner

Ready to run.

Testing in
TestOps/sec
Obj access
a['']
ready
Set access
b.has('')
ready

Revisions

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