lodash trim vs replace

one year ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Test name Executions per second
lodash trim 1120161.0 Ops/sec
lodash replace 2133328.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash trim

  • lodash replace

Open this result on MeasureThat.net