From 250a0ab5eb24e0d24c982d53b58b8788d7af57fb Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 10 Jun 2012 13:46:45 -0400 Subject: [PATCH] Add `_.shuffle` benchmark. Former-commit-id: 13a0a7392108571d4ebced5e6e6ff66048091983 --- perf/perf.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/perf/perf.js b/perf/perf.js index 68bff8b28..75a1696b1 100644 --- a/perf/perf.js +++ b/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( Benchmark.Suite('sortBy callback') .add('Lo-Dash', function() {