Clone deep vs Spread vs Stringify

4 years ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.2 Safari/605.1.15
Test name Executions per second
Lodash 473127.2 Ops/sec
Spread 834412.8 Ops/sec
Stringify 304034.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash

  • Spread

  • Stringify

Open this result on MeasureThat.net