Run details:
Mozilla/5.0 (Android 12; Mobile; rv:109.0) Gecko/112.0 Firefox/112.0
Firefox Mobile 112
Android
Mobile
one year ago
Test name Executions per second
class without declared fields 2384.5 Ops/sec
class with declared fields 2102.5 Ops/sec
function constructor 2330.1 Ops/sec
object literal 73558.0 Ops/sec
object literal & sum.call 39968.7 Ops/sec
object literal & sum.bind 20200.8 Ops/sec
Object.create 2399.8 Ops/sec
Object.setPrototypeOf 3941.5 Ops/sec
Script Preparation code:
Tests:
  • class without declared fields

  • class with declared fields

  • function constructor

  • object literal

  • object literal & sum.call

  • object literal & sum.bind

  • Object.create

  • Object.setPrototypeOf