Skip to content

Optimisation of fengari objects

daurnimator edited this page Mar 31, 2018 · 1 revision
  • .bind vs wrapper functions
  • setting properties manually vs Object.defineProperties

https://jsperf.com/member-vs-object-defineproperties

Results:

  • Object.defineProperties is much slower than setting directly
  • "Plain with args" is the winner in both chrome and firefox
Clone this wiki locally