Permalink
Browse files

added set large

  • Loading branch information...
1 parent 663acd7 commit 953fa9dad3a72a9311e1d6bfd21d8e0b3a88a686 @tj committed Apr 24, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 bench.js
View
@@ -35,6 +35,13 @@ if ('child' == args[0]) {
db.set('foo', 'bar', fn);
};
break;
+ case 'set-large':
+ var buf = fs.readFileSync(__filename);
+ fn = function(){
+ ++ops;
+ db.set('file', buf, fn);
+ };
+ break;
case 'get':
db.set('foo', 'bar');
fn = function(){

0 comments on commit 953fa9d

Please sign in to comment.