From 3d5776cf8890cf23b52da2a538c9cd663147b6f6 Mon Sep 17 00:00:00 2001 From: Marc Harter Date: Fri, 29 Aug 2014 11:13:40 -0500 Subject: [PATCH] del; not functional existing benchmark --- bm.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 bm.js diff --git a/bm.js b/bm.js deleted file mode 100644 index 54741f1a..00000000 --- a/bm.js +++ /dev/null @@ -1,21 +0,0 @@ - -var redis = require('./lib/redis') - , times = 100000; - -var n = times - , pending = n - , client = redis.createClient() - , start = new Date; - -client.on('connect', function(){ - while (n--) { - client.set('foo:' + n, 'bar', function(err){ - if (err) throw err; - --pending || report(); - }); - } -}); - -function report() { - console.log('\x1b[33m%d\x1b[0m sets in \x1b[32m%d\x1b[0m milliseconds', times, new Date - start); -} \ No newline at end of file