diff --git a/perf/perf.js b/perf/perf.js index d8dda55b3..625e9ee9e 100644 --- a/perf/perf.js +++ b/perf/perf.js @@ -78,7 +78,8 @@ * @returns {Number} Returns the adjusted Hz. */ function getHz(bench) { - return 1 / (bench.stats.mean + bench.stats.moe); + var result = 1 / (bench.stats.mean + bench.stats.moe); + return isFinite(result) ? result : 0; } /** @@ -1419,6 +1420,20 @@ ) ); + suites.push( + Benchmark.Suite('`_.some` with `thisArg` iterating an array (slow path)') + .add(buildName, '\ + lodash.some(objects, function(value, index) {\ + return this["key" + index] == 19;\ + }, object)' + ) + .add(otherName, '\ + _.some(objects, function(value, index) {\ + return this["key" + index] == 19;\ + }, object)' + ) + ); + suites.push( Benchmark.Suite('`_.some` iterating an object') .add(buildName, '\