mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Optimize _.clone.
This commit is contained in:
10
perf/perf.js
10
perf/perf.js
@@ -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, '\
|
||||
|
||||
Reference in New Issue
Block a user