You've already forked node-redis
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:
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var redis = require("./index"),
|
var redis = require("../index"),
|
||||||
metrics = require("metrics"),
|
metrics = require("metrics"),
|
||||||
num_clients = parseInt(process.argv[2], 10) || 5,
|
num_clients = parseInt(process.argv[2], 10) || 5,
|
||||||
num_requests = 20000,
|
num_requests = 20000,
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
||||||
"coverage": "nyc report --reporter=html",
|
"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",
|
"test": "nyc ./node_modules/.bin/_mocha ./test/*.js ./test/commands/*.js ./test/parser/*.js --timeout=8000",
|
||||||
"pretest": "optional-dev-dependency hiredis",
|
"pretest": "optional-dev-dependency hiredis",
|
||||||
"posttest": "jshint ."
|
"posttest": "jshint ."
|
||||||
|
Reference in New Issue
Block a user