Optimize _.clone.

This commit is contained in:
John-David Dalton
2014-07-01 09:09:35 -07:00
parent caf31eb6d3
commit 6622922468
2 changed files with 74 additions and 50 deletions

View File

@@ -655,6 +655,16 @@
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('`_.clone` with an array')
.add(buildName, '\
lodash.clone(numbers)'
)
.add(otherName, '\
_.clone(numbers)'
)
);
suites.push(
Benchmark.Suite('`_.clone` with an object')
.add(buildName, '\