Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0
Firefox 33
Windows 7
Desktop
one year ago
Test name Executions per second
ES6 property (get) 10120953.0 Ops/sec
Getter function 10118936.0 Ops/sec
Directly get 10112982.0 Ops/sec
ES6 property (set) 23380096.0 Ops/sec
Setter function 23696242.0 Ops/sec
Directly set 23622198.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set