mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Fix failing unit test in Opera < 10.52 and add _.toArray benchmarks.
Former-commit-id: 0ed6d5c52b2486be4ccc212da7bbc7cb6d67cf7f
This commit is contained in:
22
perf/perf.js
22
perf/perf.js
@@ -872,6 +872,28 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
suites.push(
|
||||
Benchmark.Suite('`_.toArray` with an array')
|
||||
.add('Lo-Dash', function() {
|
||||
lodash.toArray(numbers);
|
||||
})
|
||||
.add('Underscore', function() {
|
||||
_.toArray(numbers);
|
||||
})
|
||||
);
|
||||
|
||||
suites.push(
|
||||
Benchmark.Suite('`_.toArray` with an object')
|
||||
.add('Lo-Dash', function() {
|
||||
lodash.toArray(object);
|
||||
})
|
||||
.add('Underscore', function() {
|
||||
_.toArray(object);
|
||||
})
|
||||
);
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
suites.push(
|
||||
Benchmark.Suite('`_.union`')
|
||||
.add('Lo-Dash', function() {
|
||||
|
||||
Reference in New Issue
Block a user