Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Linux
Desktop
one year ago
Test name Executions per second
ES6 property (get) 419087232.0 Ops/sec
Getter function 414104672.0 Ops/sec
Directly get 415490368.0 Ops/sec
ES6 property (set) 632992512.0 Ops/sec
Setter function 630891968.0 Ops/sec
Directly set 628545216.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;