Simplify _.max, _.min, and _.bind.

Former-commit-id: 1da0b013d0c47748d757e90248eebe9ed51918ae
This commit is contained in:
John-David Dalton
2012-05-24 10:02:32 -04:00
parent 86e125a6f3
commit 8f7667a524
4 changed files with 52 additions and 90 deletions

View File

@@ -292,6 +292,31 @@
});
})
);
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('max')
.add('Lo-Dash', function() {
lodash.max(numbers);
})
.add('Underscore', function() {
_.max(numbers);
})
);
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('min')
.add('Lo-Dash', function() {
lodash.min(numbers);
})
.add('Underscore', function() {
_.min(numbers);
})
);
/*--------------------------------------------------------------------------*/
suites.push(