Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1
Mobile Safari 12
iOS 12.1.2
Mobile
5 years ago
Test name Executions per second
_.isEqual Level 1 533958.8 Ops/sec
JSON.stringify Level 1 290086.2 Ops/sec
_.isEqual Level 2 308524.2 Ops/sec
JSON.stringify Level 2 305989.5 Ops/sec
_.isEqual Level 3 216198.6 Ops/sec
JSON.stringify Level 3 331752.2 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