1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Add benchmark task to npm

This commit is contained in:
Ruben Bridgewater
2015-09-20 21:51:53 +02:00
parent 21d40717ab
commit 6975b0723d
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
'use strict';
var redis = require("./index"),
var redis = require("../index"),
metrics = require("metrics"),
num_clients = parseInt(process.argv[2], 10) || 5,
num_requests = 20000,

View File

@@ -12,6 +12,7 @@
"scripts": {
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report --reporter=html",
"benchmark": "node benchmarks/multi_bench.js",
"test": "nyc ./node_modules/.bin/_mocha ./test/*.js ./test/commands/*.js ./test/parser/*.js --timeout=8000",
"pretest": "optional-dev-dependency hiredis",
"posttest": "jshint ."