blaze-performance-tester 3.1.33 → 3.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +7 -5
- package/dist/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -334,7 +334,7 @@ async function runIntelligentAgenticStressTest(config) {
|
|
|
334
334
|
const analyzer = new LogAnalyzer();
|
|
335
335
|
semanticReport = analyzer.process(aggregateErrorLogs);
|
|
336
336
|
}
|
|
337
|
-
const finalState = history[history.length - 1] || { apdex: 0, errorRate: 0, p95Latency: 0, throughput: 0 };
|
|
337
|
+
const finalState = history[history.length - 1] || { apdex: 0, errorRate: 0, p95Latency: 0, throughput: 0, avgLatency: 0 };
|
|
338
338
|
const healthScore = computeHealthScoreValue(finalState.apdex, finalState.errorRate, finalState.p95Latency, config.maxAllowedLatencyMs);
|
|
339
339
|
const finalSummaryCards = {
|
|
340
340
|
apdex: finalState.apdex,
|
|
@@ -355,7 +355,8 @@ async function runIntelligentAgenticStressTest(config) {
|
|
|
355
355
|
console.log(`\u{1F50E} [SEO Impact Report]: Target latency under stress (${finalLat.toFixed(1)}ms) triggers a predicted Search Visibility Loss of -${seo.trafficLoss}% [Status: ${seo.status}].`);
|
|
356
356
|
}
|
|
357
357
|
const breakdownRates = {};
|
|
358
|
-
Object.keys(globalCodeCounts).forEach((
|
|
358
|
+
Object.keys(globalCodeCounts).forEach((codeStr) => {
|
|
359
|
+
const code = parseInt(codeStr, 10);
|
|
359
360
|
breakdownRates[code] = totalRequestsAccumulator === 0 ? 0 : globalCodeCounts[code] / totalRequestsAccumulator * 100;
|
|
360
361
|
});
|
|
361
362
|
exportHtmlDashboard(history, config, verdictReason, semanticReport, { total1xx, total2xx, total3xx, total4xx, total5xx, breakdownRates }, finalSummaryCards, lastRawRequests);
|
|
@@ -402,7 +403,8 @@ async function runStandardStressTest(config) {
|
|
|
402
403
|
console.log(`\u{1F50E} [SEO Impact Report]: Target latency (${metrics.avgLatencyMs.toFixed(1)}ms) triggers a predicted Search Visibility Loss of -${seo.trafficLoss}% [Status: ${seo.status}].`);
|
|
403
404
|
}
|
|
404
405
|
const breakdownRates = {};
|
|
405
|
-
Object.keys(metrics.codeCounts).forEach((
|
|
406
|
+
Object.keys(metrics.codeCounts).forEach((codeStr) => {
|
|
407
|
+
const code = parseInt(codeStr, 10);
|
|
406
408
|
breakdownRates[code] = metrics.totalRequests === 0 ? 0 : metrics.codeCounts[code] / metrics.totalRequests * 100;
|
|
407
409
|
});
|
|
408
410
|
exportHtmlDashboard(history, config, verdictReason, semanticReport, {
|
|
@@ -1045,8 +1047,8 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
1045
1047
|
},
|
|
1046
1048
|
scales: {
|
|
1047
1049
|
x: { grid: { color: '#1e293b' }, ticks: { color: '#64748b' } },
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
+
yThreads: { position: 'left', grid: { color: '#1e293b' }, ticks: { color: '#38bdf8' }, title: { display: true, text: 'VUs / Threads', color: '#38bdf8' } },
|
|
1051
|
+
yTtf: { position: 'right', grid: { drawOnChartArea: false }, ticks: { color: '#f43f5e' }, title: { display: true, text: 'TTF Index / Latency ms', color: '#f43f5e' } }
|
|
1050
1052
|
}
|
|
1051
1053
|
}
|
|
1052
1054
|
});
|
|
Binary file
|