Fix failing unit test in Opera < 10.52 and add _.toArray benchmarks.

Former-commit-id: 0ed6d5c52b2486be4ccc212da7bbc7cb6d67cf7f
This commit is contained in:
John-David Dalton
2012-07-11 11:26:49 -04:00
parent 60ed65a73a
commit d496361555
3 changed files with 29 additions and 4 deletions

View File

@@ -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() {