Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36
Chrome 74
Mac OS X 10.14.5
Desktop
5 years ago
Test name Executions per second
_.isEqual object 381133.2 Ops/sec
JSON.stringify object 347240.4 Ops/sec
_.isEqual string 2349191.8 Ops/sec
JS string 3736348.0 Ops/sec
_.isEqual bool 2329694.2 Ops/sec
JS bool 3671259.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.isEqual object

  • JSON.stringify object

  • _.isEqual string

  • JS string

  • _.isEqual bool

  • JS bool


;