Define property

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Set property value
let d = {};
for (i = 0; i < 10000; i++) d.test = 1;
ready
Object.defineProperty
let d = {};
for (i = 0; i < 10000; i++) Object.defineProperty(d, 'test', { value: 1})
ready

Revisions

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