Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added get-large bm

  • Loading branch information...
commit 663acd735ec2e40ef9f0a8f66ac4a76ae3f56886 1 parent 5457374
@tj authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 bench.js
View
11 bench.js
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.