Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
one year ago
Test name Executions per second
Mapping 541263.8 Ops/sec
spreading, then modifying 650415.3 Ops/sec
Object.assign, then modifying 159075.0 Ops/sec
Script Preparation code:
Tests:
  • Mapping

  • spreading, then modifying

  • Object.assign, then modifying