mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 12:27:49 +00:00
Fix perf.js.
Former-commit-id: 4eef40ddbcb851aca3a87813a17dc329f9ecb071
This commit is contained in:
12
perf/perf.js
12
perf/perf.js
@@ -835,13 +835,13 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
suites.push(
|
suites.push(
|
||||||
Benchmark.Suite('`_.intersection` iterating 50 elements')
|
Benchmark.Suite('`_.intersection` iterating 50 and 75 elements')
|
||||||
.add('Lo-Dash', {
|
.add('Lo-Dash', {
|
||||||
'fn': 'lodash.intersection(fiftyValues, fiftyValues2)',
|
'fn': 'lodash.intersection(fiftyValues, seventyFiveValues2)',
|
||||||
'teardown': 'function multiArrays(){}'
|
'teardown': 'function multiArrays(){}'
|
||||||
})
|
})
|
||||||
.add('Underscore', {
|
.add('Underscore', {
|
||||||
'fn': '_.intersection(fiftyValues, fiftyValues2)',
|
'fn': '_.intersection(fiftyValues, seventyFiveValues2)',
|
||||||
'teardown': 'function multiArrays(){}'
|
'teardown': 'function multiArrays(){}'
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@@ -1511,13 +1511,13 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
suites.push(
|
suites.push(
|
||||||
Benchmark.Suite('`_.without` iterating an array of 50 elements')
|
Benchmark.Suite('`_.without` iterating an array of 75 and 50 elements')
|
||||||
.add('Lo-Dash', {
|
.add('Lo-Dash', {
|
||||||
'fn': 'lodash.without.apply(lodash, [fiftyValues].concat(fiftyValues2));',
|
'fn': 'lodash.without.apply(lodash, [seventyFiveValues2].concat(fiftyValues));',
|
||||||
'teardown': 'function multiArrays(){}'
|
'teardown': 'function multiArrays(){}'
|
||||||
})
|
})
|
||||||
.add('Underscore', {
|
.add('Underscore', {
|
||||||
'fn': '_.without.apply(_, [fiftyValues].concat(fiftyValues2));',
|
'fn': '_.without.apply(_, [seventyFiveValues2].concat(fiftyValues));',
|
||||||
'teardown': 'function multiArrays(){}'
|
'teardown': 'function multiArrays(){}'
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user