mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Add _.shuffle benchmark.
Former-commit-id: 13a0a7392108571d4ebced5e6e6ff66048091983
This commit is contained in:
12
perf/perf.js
12
perf/perf.js
@@ -479,6 +479,18 @@
|
|||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
suites.push(
|
||||||
|
Benchmark.Suite('shuffle')
|
||||||
|
.add('Lo-Dash', function() {
|
||||||
|
lodash.shuffle(numbers);
|
||||||
|
})
|
||||||
|
.add('Underscore', function() {
|
||||||
|
_.shuffle(numbers);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
suites.push(
|
suites.push(
|
||||||
Benchmark.Suite('sortBy callback')
|
Benchmark.Suite('sortBy callback')
|
||||||
.add('Lo-Dash', function() {
|
.add('Lo-Dash', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user