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.
4 months ago
User agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Mobile/15E148 Safari/604.1
Test name Executions per second
Lodash 2702.2 Ops/sec
Ramda without relying on currying or composition 1953.7 Ops/sec
Ramda with currying and composition 1917.1 Ops/sec
Vanilla JS 6006.7 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