Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36
Chrome 78
Windows
Desktop
4 years ago
Test name Executions per second
_.isEqual Level 1 428439.5 Ops/sec
JSON.stringify Level 1 244461.2 Ops/sec
_.isEqual Level 2 128748.2 Ops/sec
JSON.stringify Level 2 16535.1 Ops/sec
_.isEqual Level 3 68966.7 Ops/sec
JSON.stringify Level 3 104002.7 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