From a0683390796b3c53bb37bc2c30002f76a336cc42 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 12 Jun 2012 23:44:21 -0400 Subject: [PATCH] Indicate slow paths in perf.js. Former-commit-id: 561e4f0957934b25422f7f515678705be4af726f --- perf/perf.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perf/perf.js b/perf/perf.js index 75a1696b1..8d5b91dd9 100644 --- a/perf/perf.js +++ b/perf/perf.js @@ -238,7 +238,7 @@ ); suites.push( - Benchmark.Suite('each array thisArg') + Benchmark.Suite('each array thisArg (slow path)') .add('Lo-Dash', function() { var result = []; lodash.each(numbers, function(num, index) { @@ -416,7 +416,7 @@ ); suites.push( - Benchmark.Suite('map thisArg') + Benchmark.Suite('map thisArg (slow path)') .add('Lo-Dash', function() { lodash.map(objects, function(value, index) { return this['key' + index] + value.num; @@ -502,7 +502,7 @@ ); suites.push( - Benchmark.Suite('sortBy callback thisArg') + Benchmark.Suite('sortBy callback thisArg (slow path)') .add('Lo-Dash', function() { lodash.sortBy(numbers, function(num) { return this.sin(num); }, Math); }) @@ -534,7 +534,7 @@ ); suites.push( - Benchmark.Suite('sortedIndex callback') + Benchmark.Suite('sortedIndex callback (slow path)') .add('Lo-Dash', function() { lodash.sortedIndex(words, 'twenty-five', function(value) { return wordToNumber[value];