Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.4.1
Mobile
one year ago
Test name Executions per second
Obj 149032528.0 Ops/sec
Obj literal 137367184.0 Ops/sec
Fn 84495696.0 Ops/sec
Prototype 6577017.0 Ops/sec
Class 5754763.0 Ops/sec
Fn 2 78516368.0 Ops/sec
Script Preparation code:
Tests:
  • Obj

  • Obj literal

  • Fn

  • Prototype

  • Class

  • Fn 2