Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
benchmark the performance of Lodash with and without chaining 100 times
benchmark the performance of Lodash with and without chaining
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Browser:
Chrome 145
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 months ago
Test name
Executions per second
Test function using Lodash chaining
231.1 Ops/sec
Test function without Lodash chaining
233.5 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var text = ''; for (let i = 0; i < 1024; i++) { // Generate a random character from the ASCII table text += String.fromCharCode(32 + Math.random() * (126 - 32)); }
Tests:
Test function using Lodash chaining
for (let i = 0; i < 100; i++) { _.chain(text).trim().startCase().value(); }
Test function without Lodash chaining
for (let i = 0; i < 100; i++) { _.startCase(_.trim(text)); }