JS native vs js native loop vs 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.
2 months ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Test name Executions per second
JS native 79.3 Ops/sec
Ramda with transducer 73.9 Ops/sec
Ramda with transducer (no prop) 103.8 Ops/sec
Ramda with currying and composition 61.2 Ops/sec
Ramda without relying on currying or composition 63.4 Ops/sec
Ramda with currying and composition (no pluck) 79.3 Ops/sec
Lodash 82.5 Ops/sec
js native loops 2.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • JS native

  • Ramda with transducer

  • Ramda with transducer (no prop)

  • Ramda with currying and composition

  • Ramda without relying on currying or composition

  • Ramda with currying and composition (no pluck)

  • Lodash

  • js native loops

Open this result on MeasureThat.net