Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
asdasdTEst
(version: 0)
Comparing performance of:
lodash vs raw
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
var nums = [ [123, 64, 27], [1, 64, 48], [15, 4, 49], [51, 64, 48], [112, 23, 12], [38, 27] ]
Tests:
lodash
_(nums).flatten().groupBy(x=>x).sortBy(x=>x.length).map(_.head).reverse().value()
raw
var ids = {}; nums.map((stems) => stems.forEach((statementId) => { typeof ids[statementId] === "undefined" ? (ids[statementId] = 1) : ids[statementId]++; }) ) Object.entries(ids) .sort((a, b) => a[1] + b[1]) .map(x => x[0])
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash
raw
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Array Sorting Methods
50000 number array(natvie forEach vs lodash forEach)
spread v splice
lodash flatmap long
Array IndexOf vs includes
Comments
Confirm delete:
Do you really want to delete benchmark?