Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.101 YaBrowser/20.7.0.1230 Yowser/2.5 Safari/537.36
Yandex Browser 20
Mac OS X 10.14.6
Desktop
4 years ago
Test name Executions per second
_.compact 2505331.0 Ops/sec
array.filter 2758286.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.compact

  • array.filter