From 535eec53666611df680df8ae7b49d1d695b87270 Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 18 Jun 2015 07:51:43 -0700 Subject: [PATCH] Add `_.sum` benchmark. --- perf/perf.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/perf/perf.js b/perf/perf.js index f1ee17006..da375fbb7 100644 --- a/perf/perf.js +++ b/perf/perf.js @@ -1881,6 +1881,18 @@ /*--------------------------------------------------------------------------*/ + suites.push( + Benchmark.Suite('`_.sum`') + .add(buildName, '\ + lodash.sum(numbers)' + ) + .add(otherName, '\ + _.sum(numbers)' + ) + ); + + /*--------------------------------------------------------------------------*/ + suites.push( Benchmark.Suite('`_.template` (slow path)') .add(buildName, {