Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1
Mobile Safari 11
iOS 11.4.1
Mobile
6 years ago
Test name Executions per second
_.isEqual Level 1 300959.0 Ops/sec
JSON.stringify Level 1 216628.5 Ops/sec
_.isEqual Level 2 172529.0 Ops/sec
JSON.stringify Level 2 183235.6 Ops/sec
_.isEqual Level 3 129910.7 Ops/sec
JSON.stringify Level 3 161576.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