Object.defineProperty - reading

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
regular
o = {};
o.test = 1;
for (let i = 0; i < 100000; i++) {
	let a = o.test + 1;
}
ready
Object.defineProperty
o = {};
Object.defineProperty(o,'test',{value: 1});
for (let i = 0; i < 100000; i++) {
	let a = o.test + 1;
}
ready

Revisions

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