Simplify _.bind benchmark.

This commit is contained in:
John-David Dalton
2013-09-12 19:30:59 -07:00
parent 36fcc460f4
commit 7dfdfe5b50

View File

@@ -591,13 +591,13 @@
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('`_.bind` with partially applied arguments (uses native `Function#bind` if available and inferred fast)')
Benchmark.Suite('`_.bind` (uses native `Function#bind` if available and inferred fast)')
.add(buildName, {
'fn': 'lodash.bind(func, { "name": "moe" }, "hi")',
'fn': 'lodash.bind(func, { "name": "moe" })',
'teardown': 'function bind(){}'
})
.add(otherName, {
'fn': '_.bind(func, { "name": "moe" }, "hi")',
'fn': '_.bind(func, { "name": "moe" })',
'teardown': 'function bind(){}'
})
);