Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Linux
Desktop
one year ago
Test name Executions per second
class 86911.5 Ops/sec
function constructor 96339.0 Ops/sec
object literal 782290.1 Ops/sec
object literal & sum.call 254923.9 Ops/sec
__proto__ 8483.8 Ops/sec
Object.create 56298.6 Ops/sec
Object.setPrototypeOf 8162.1 Ops/sec
Script Preparation code:
Tests:
  • class

  • function constructor

  • object literal

  • object literal & sum.call

  • __proto__

  • Object.create

  • Object.setPrototypeOf


;