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) 772409216.0 Ops/sec
Getter function 773928832.0 Ops/sec
Directly get 770841536.0 Ops/sec
ES6 property (set) 1234674176.0 Ops/sec
Setter function 1228914816.0 Ops/sec
Directly set 1239705216.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;