Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
ES6 property (get) 772409200.0 Ops/sec
Getter function 773928800.0 Ops/sec
Directly get 770841500.0 Ops/sec
ES6 property (set) 1234674000.0 Ops/sec
Setter function 1228915000.0 Ops/sec
Directly set 1239705000.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set