mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Cleanup pref.'s style and add comment.
Former-commit-id: ab01044b50ef4a6d447e3e937c31cf5747b3113b
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
} else {
|
||||
console.log(fastest + ' is the fastest.');
|
||||
}
|
||||
// add score adjusting for maring of error
|
||||
score.lodash += Math.floor(1 / (this[0].stats.mean + this[0].stats.moe));
|
||||
score.underscore += Math.floor(1 / (this[1].stats.mean + this[1].stats.moe));
|
||||
|
||||
@@ -137,10 +138,10 @@
|
||||
suites.push(
|
||||
Benchmark.Suite('keys')
|
||||
.add('Lo-Dash', function() {
|
||||
lodash.keys( object );
|
||||
lodash.keys(object);
|
||||
})
|
||||
.add('Underscore', function() {
|
||||
_.keys( object );
|
||||
_.keys(object);
|
||||
})
|
||||
);
|
||||
|
||||
@@ -149,12 +150,12 @@
|
||||
suites.push(
|
||||
Benchmark.Suite('map')
|
||||
.add('Lo-Dash', function() {
|
||||
lodash.map( objects, function( obj ) {
|
||||
lodash.map(objects, function(obj) {
|
||||
return obj.num;
|
||||
});
|
||||
})
|
||||
.add('Underscore', function() {
|
||||
_.map( objects, function( obj ) {
|
||||
_.map(objects, function(obj) {
|
||||
return obj.num;
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user