Prop access

Benchmark created on


Setup

let res
let ls = 'q'
const cs = 'w'
let ly = Symbol()
const cy = Symbol()
const obj = {
	[ls]:1,
	[cs]:2,
	[ly]:3,
	[cy]:4,
	p:5
	}

Test runner

Ready to run.

Testing in
TestOps/sec
Let string
res = obj[ls]
ready
Const string
res = obj[cs]
ready
Let symbol
res = obj[ly]
ready
Const symbol
res = obj[cy]
ready
Prop
res = obj.p
ready

Revisions

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