artillery-core
Advanced tools
Comparing version 1.5.6 to 1.6.0-0
@@ -122,2 +122,7 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
if (params.afterResponse) { | ||
let processFunc = config.processor[params.afterResponse]; | ||
processFunc(null, res, context, ee); | ||
} | ||
if (params.capture || params.match) { | ||
@@ -124,0 +129,0 @@ let parser; |
@@ -237,2 +237,6 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
scenarioEvents = new EventEmitter(); | ||
scenarioEvents.on('customStat', function(stat) { | ||
intermediate.addCustomStat(stat.stat, stat.value); | ||
aggregate.addCustomStat(stat.stat, stat.value); | ||
}); | ||
scenarioEvents.on('started', function() { | ||
@@ -239,0 +243,0 @@ pendingScenarios++; |
@@ -127,5 +127,25 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
result.customStats = {}; | ||
L.each(this._customStats, function(ns, name) { | ||
result.customStats[name] = { | ||
min: round(L.min(ns), 1), | ||
max: round(L.max(ns), 1), | ||
median: round(sl.median(ns), 1), | ||
p95: round(sl.percentile(ns, 0.95), 1), | ||
p99: round(sl.percentile(ns, 0.99), 1) | ||
}; | ||
}); | ||
return result; | ||
}; | ||
Stats.prototype.addCustomStat = function(name, n) { | ||
if (!this._customStats[name]) { | ||
this._customStats[name] = []; | ||
} | ||
this._customStats[name].push(n); | ||
return this; | ||
}; | ||
Stats.prototype.reset = function() { | ||
@@ -142,2 +162,3 @@ this._entries = []; | ||
this._matches = 0; | ||
this._customStats = {}; | ||
return this; | ||
@@ -144,0 +165,0 @@ }; |
{ | ||
"name": "artillery-core", | ||
"version": "1.5.6", | ||
"version": "1.6.0-0", | ||
"description": "core load-generating functionality of Artillery", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
57259
1220
2