Revert to compiling _.assign and _.defaults, using isKeysFast, and tweak large array size in _.without.

Former-commit-id: 275d453f49e762ac499a9328ddb8e156b8c9c22d
This commit is contained in:
John-David Dalton
2013-01-23 23:58:34 -08:00
parent dd9baa1502
commit 9f7319cff4
8 changed files with 279 additions and 267 deletions

View File

@@ -1733,13 +1733,13 @@
);
suites.push(
Benchmark.Suite('`_.without` iterating an array of 20 elements')
Benchmark.Suite('`_.without` iterating an array of 30 elements')
.add(buildName, {
'fn': 'lodash.without.apply(lodash, [twentyValues].concat(twentyValues2));',
'fn': 'lodash.without.apply(lodash, [thirtyValues].concat(thirtyValues2));',
'teardown': 'function multiArrays(){}'
})
.add(otherName, {
'fn': '_.without.apply(_, [twentyValues].concat(twentyValues2));',
'fn': '_.without.apply(_, [thirtyValues].concat(thirtyValues2));',
'teardown': 'function multiArrays(){}'
})
);