Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/115.0.5790.130 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 115
iOS 16.5
Mobile
one year ago
Test name Executions per second
Lodash with same object 5336122.5 Ops/sec
Lodash with equal objects 769649.0 Ops/sec
Lodash with different objects 1770817.5 Ops/sec
Lodash with different types 4658733.5 Ops/sec
JSON.stringify with same object 1199172.0 Ops/sec
JSON.stringify with equal objects 1209575.1 Ops/sec
JSON.stringify with different objects 1421776.0 Ops/sec
JSON.stringify with different types 1237812.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash with same object

  • Lodash with equal objects

  • Lodash with different objects

  • Lodash with different types

  • JSON.stringify with same object

  • JSON.stringify with equal objects

  • JSON.stringify with different objects

  • JSON.stringify with different types