Object accessor cacheing

Benchmark created by Talon on


Setup

const thing = {
    value: "hello"
  }
  const cachedValue = thing.value

Test runner

Ready to run.

Testing in
TestOps/sec
uncached
console.log(thing["value"])
ready
cached
console.log(cachedValue)
ready
accessed
console.log(thing.value)
ready

Revisions

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