diff --git a/perf/perf.js b/perf/perf.js index ea9c78129..6a9b3315d 100644 --- a/perf/perf.js +++ b/perf/perf.js @@ -829,22 +829,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.each` iterating an array with `thisArg` (slow path)') - .add(buildName, '\ - var result = [];\ - lodash.each(numbers, function(num, index) {\ - result.push(num + this["key" + index]);\ - }, object)' - ) - .add(otherName, '\ - var result = [];\ - _.each(numbers, function(num, index) {\ - result.push(num + this["key" + index]);\ - }, object)' - ) - ); - suites.push( Benchmark.Suite('`_.each` iterating an object') .add(buildName, '\ @@ -907,20 +891,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.filter` iterating an array with `thisArg` (slow path)') - .add(buildName, '\ - lodash.filter(numbers, function(num, index) {\ - return this["key" + index] % 2;\ - }, object)' - ) - .add(otherName, '\ - _.filter(numbers, function(num, index) {\ - return this["key" + index] % 2;\ - }, object)' - ) - ); - suites.push( Benchmark.Suite('`_.filter` iterating an object') .add(buildName, '\ @@ -1400,20 +1370,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.map` with `thisArg` iterating an array (slow path)') - .add(buildName, '\ - lodash.map(objects, function(value, index) {\ - return this["key" + index] + value.num;\ - }, object)' - ) - .add(otherName, '\ - _.map(objects, function(value, index) {\ - return this["key" + index] + value.num;\ - }, object)' - ) - ); - suites.push( Benchmark.Suite('`_.map` iterating an object') .add(buildName, '\ @@ -1530,20 +1486,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.partition` iterating an array with `thisArg` (slow path)') - .add(buildName, '\ - lodash.partition(numbers, function(num, index) {\ - return this["key" + index] % 2;\ - }, object)' - ) - .add(otherName, '\ - _.partition(numbers, function(num, index) {\ - return this["key" + index] % 2;\ - }, object)' - ) - ); - suites.push( Benchmark.Suite('`_.partition` iterating an object') .add(buildName, '\ @@ -1666,20 +1608,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.reject` iterating an array with `thisArg` (slow path)') - .add(buildName, '\ - lodash.reject(numbers, function(num, index) {\ - return this["key" + index] % 2;\ - }, object)' - ) - .add(otherName, '\ - _.reject(numbers, function(num, index) {\ - return this["key" + index] % 2;\ - }, object)' - ) - ); - suites.push( Benchmark.Suite('`_.reject` iterating an object') .add(buildName, '\ @@ -1746,20 +1674,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.some` with `thisArg` iterating an array (slow path)') - .add(buildName, '\ - lodash.some(objects, function(value, index) {\ - return this["key" + index] == (limit - 1);\ - }, object)' - ) - .add(otherName, '\ - _.some(objects, function(value, index) {\ - return this["key" + index] == (limit - 1);\ - }, object)' - ) - ); - suites.push( Benchmark.Suite('`_.some` iterating an object') .add(buildName, '\ @@ -1786,16 +1700,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.sortBy` with `callback` and `thisArg` (slow path)') - .add(buildName, '\ - lodash.sortBy(numbers, function(num) { return this.sin(num); }, Math)' - ) - .add(otherName, '\ - _.sortBy(numbers, function(num) { return this.sin(num); }, Math)' - ) - ); - suites.push( Benchmark.Suite('`_.sortBy` with `property` name') .add(buildName, { @@ -1902,18 +1806,6 @@ ) ); - suites.push( - Benchmark.Suite('`_.times` with `thisArg` (slow path)') - .add(buildName, '\ - var result = [];\ - lodash.times(limit, function(n) { result.push(this.sin(n)); }, Math)' - ) - .add(otherName, '\ - var result = [];\ - _.times(limit, function(n) { result.push(this.sin(n)); }, Math)' - ) - ); - /*--------------------------------------------------------------------------*/ suites.push(