Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/72.0.3626.101 Mobile/15E148 Safari/605.1
Chrome Mobile iOS 72
iOS 12.2
Mobile
4 years ago
Test name Executions per second
_.isEqual Level 1 471430.4 Ops/sec
JSON.stringify Level 1 237126.5 Ops/sec
_.isEqual Level 2 306493.4 Ops/sec
JSON.stringify Level 2 245225.2 Ops/sec
_.isEqual Level 3 206512.3 Ops/sec
JSON.stringify Level 3 223235.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.isEqual Level 1

  • JSON.stringify Level 1

  • _.isEqual Level 2

  • JSON.stringify Level 2

  • _.isEqual Level 3

  • JSON.stringify Level 3