Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
spread 70.5 Ops/sec
assign 72.2 Ops/sec
assign null 76.1 Ops/sec
Object setPrototypeOf 3118901.0 Ops/sec
Object setPrototypeOf null 1829791.6 Ops/sec
Reflect setPrototypeOf 2674997.5 Ops/sec
Reflect setPrototypeOf null 1748959.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • spread

  • assign

  • assign null

  • Object setPrototypeOf

  • Object setPrototypeOf null

  • Reflect setPrototypeOf

  • Reflect setPrototypeOf null