Add _.shuffle benchmark.

Former-commit-id: 13a0a7392108571d4ebced5e6e6ff66048091983
This commit is contained in:
John-David Dalton
2012-06-10 13:46:45 -04:00
parent 2da05d88a0
commit 250a0ab5eb

View File

@@ -479,6 +479,18 @@
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('shuffle')
.add('Lo-Dash', function() {
lodash.shuffle(numbers);
})
.add('Underscore', function() {
_.shuffle(numbers);
})
);
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('sortBy callback')
.add('Lo-Dash', function() {