Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash Lazy Evaluation vs ES6 Strict Evaluation
Lodash Lazy Evaluation vs ES6 Strict Evaluation
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
ES6 - Strict
81976.7 Ops/sec
Lodash - Lazy
73853.8 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>
Tests:
ES6 - Strict
const testArray = [4, 15, 20, 7, 3, 13, 2, 20] const result1 = testArray .filter(num => num < 10) .slice(0, 3) console.log(result1); const arr = [0, 1, 2, 3, 4, 5] const result2 = arr .map(num => num + 10) .filter(num => num % 2) .slice(0, 2) console.log(result2)
Lodash - Lazy
const testArray = [4, 15, 20, 7, 3, 13, 2, 20] const result1 = _.chain(testArray) .filter(num => num < 10) .take(3) .value(); console.log(result1); const arr = [0, 1, 2, 3, 4, 5] const result2 = _.chain(arr) .map(num => num + 10) .filter(num => num % 2) .take(2) .value() console.log(result2)