Skip to content

Commit 6975b07

Browse files
author
Ruben Bridgewater
committed
Add benchmark task to npm
1 parent 21d4071 commit 6975b07

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

benchmarks/multi_bench.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var redis = require("./index"),
3+
var redis = require("../index"),
44
metrics = require("metrics"),
55
num_clients = parseInt(process.argv[2], 10) || 5,
66
num_requests = 20000,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"scripts": {
1313
"coveralls": "nyc report --reporter=text-lcov | coveralls",
1414
"coverage": "nyc report --reporter=html",
15+
"benchmark": "node benchmarks/multi_bench.js",
1516
"test": "nyc ./node_modules/.bin/_mocha ./test/*.js ./test/commands/*.js ./test/parser/*.js --timeout=8000",
1617
"pretest": "optional-dev-dependency hiredis",
1718
"posttest": "jshint ."

0 commit comments

Comments
 (0)