Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Linux
Desktop
4 years ago
Test name Executions per second
ES6 property (get) 92019432.0 Ops/sec
Getter function 94369216.0 Ops/sec
Directly get 93193344.0 Ops/sec
ES6 property (set) 113859792.0 Ops/sec
Setter function 87859608.0 Ops/sec
Directly set 115477496.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set