mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Simplify _.bind benchmark.
This commit is contained in:
@@ -591,13 +591,13 @@
|
|||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
suites.push(
|
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, {
|
.add(buildName, {
|
||||||
'fn': 'lodash.bind(func, { "name": "moe" }, "hi")',
|
'fn': 'lodash.bind(func, { "name": "moe" })',
|
||||||
'teardown': 'function bind(){}'
|
'teardown': 'function bind(){}'
|
||||||
})
|
})
|
||||||
.add(otherName, {
|
.add(otherName, {
|
||||||
'fn': '_.bind(func, { "name": "moe" }, "hi")',
|
'fn': '_.bind(func, { "name": "moe" })',
|
||||||
'teardown': 'function bind(){}'
|
'teardown': 'function bind(){}'
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user