Permalink
Browse files

added get-large bm

  • Loading branch information...
1 parent 5457374 commit 663acd735ec2e40ef9f0a8f66ac4a76ae3f56886 @tj committed Apr 24, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 bench.js
View
@@ -4,7 +4,8 @@
*/
var redis = require('redis')
- , spawn = require('child_process').spawn;
+ , spawn = require('child_process').spawn
+ , fs = require('fs');
/**
* Arguments.
@@ -40,6 +41,14 @@ if ('child' == args[0]) {
++ops;
db.get('foo', fn);
};
+ break;
+ case 'get-large':
+ db.set('file', fs.readFileSync(__filename));
+ fn = function(){
+ ++ops;
+ db.get('file', fn);
+ };
+ break;
}
fn();

0 comments on commit 663acd7

Please sign in to comment.