Ramda vs. Lodash

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.
3 years ago
User agent: Mozilla/5.0 (Linux; Android 11; SM-G970F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Mobile Safari/537.36
Test name Executions per second
Lodash 957.8 Ops/sec
Ramda without relying on currying or composition 515.3 Ops/sec
Ramda with currying and composition 484.0 Ops/sec
Vanilla JS 909.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash

  • Ramda without relying on currying or composition

  • Ramda with currying and composition

  • Vanilla JS

Open this result on MeasureThat.net