defineProperty vs control

Benchmark created on


Setup

var obj = {};

Test runner

Ready to run.

Testing in
TestOps/sec
defineProperty
Object.defineProperty(obj, 'prop', {get: function(){return 'value'}});
ready
control
obj.otherProp = 'value'
ready

Revisions

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