Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
ES6 property (get/set) & getter/setter function & direct access to object attribute v
(version: 1)
Comparing performance of:
ES6 property (get) vs dummy
Created:
5 months ago
by:
Guest
Jump to the latest result
Script Preparation code:
class Class { constructor () { this._val = 1 } get value() { return this._val } set value(x) { this._val = x } getValue() { return this._val } setValue(x) { this.val = x } } var cls = new Class() var wtf
Tests:
ES6 property (get)
cls.value
dummy
wtf = cls.value
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
ES6 property (get)
dummy
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?