Permalink
Browse files

equal playing field for mem bench on 2.x/3.x

  • Loading branch information...
1 parent a9f0b34 commit a226877033c830e0de74e897e77c6ff402d2389f @aheckmann aheckmann committed Jun 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 benchmarks/mem.js
View
@@ -39,13 +39,13 @@ methods.push(function (a, cb) {
A.findById(a._id, cb);
}); // 4.6 MB
methods.push(function (a, cb) {
- A.where('number', a.number).sort('-_id').limit(10).exec(cb)
+ A.where('number', a.number).limit(10).exec(cb)
}); // 4.8 MB
methods.push(function (a, cb) {
A.where('date', a.date).select('string').limit(10).exec(cb)
}); // 3.5 mb
methods.push(function (a, cb) {
- A.where('date', a.date).select('string bool').sort('date').limit(10).exec(cb)
+ A.where('date', a.date).select('string bool').limit(10).exec(cb)
}); // 3.5 MB
methods.push(function (a, cb) {
A.where('date', a.date).where('array').in(3).limit(10).exec(cb)

0 comments on commit a226877

Please sign in to comment.