object property access speed

Benchmark created on


Setup

const obj = {"foo":"bar"};
const a = "foo";

Test runner

Ready to run.

Testing in
TestOps/sec
Static
obj.foo;
ready
Dynamic
obj["foo"];
ready
Dynamic with variable
obj[a];
ready

Revisions

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