blaze-performance-tester 3.0.33 → 3.0.34
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 +31 -3
- package/dist/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -598,7 +598,7 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
598
598
|
.badge-5xx { background: rgba(220, 38, 38, 0.2); color: #f87171; }
|
|
599
599
|
.matrix-value { font-size: 1rem; font-weight: bold; color: #ffffff; }
|
|
600
600
|
|
|
601
|
-
.charts-grid { display: grid; grid-template-columns:
|
|
601
|
+
.charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
|
|
602
602
|
.graph-card { background: #131c2e; border: 1px solid #1e293b; border-radius: 8px; padding: 1.5rem; }
|
|
603
603
|
.graph-title { font-size: 1.1rem; font-weight: 700; color: #ffffff; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
|
|
604
604
|
|
|
@@ -689,11 +689,18 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
689
689
|
</div>
|
|
690
690
|
|
|
691
691
|
<div class="graph-card">
|
|
692
|
-
<div class="graph-title">\u{1F504} Active Concurrency (VUs) vs.
|
|
692
|
+
<div class="graph-title">\u{1F504} Active Concurrency (VUs) vs. TTF Trend</div>
|
|
693
693
|
<div style="height: 280px; position: relative;">
|
|
694
694
|
<canvas id="concurrencyChart"></canvas>
|
|
695
695
|
</div>
|
|
696
696
|
</div>
|
|
697
|
+
|
|
698
|
+
<div class="graph-card">
|
|
699
|
+
<div class="graph-title">\u{1F369} HTTP Status Code Proportions</div>
|
|
700
|
+
<div style="height: 280px; position: relative;">
|
|
701
|
+
<canvas id="statusDonutChart"></canvas>
|
|
702
|
+
</div>
|
|
703
|
+
</div>
|
|
697
704
|
</div>
|
|
698
705
|
|
|
699
706
|
<div class="card">
|
|
@@ -734,7 +741,7 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
734
741
|
const baseThroughput = ${cards.throughput};
|
|
735
742
|
const baseLatency = ${cards.ttfb};
|
|
736
743
|
|
|
737
|
-
// Live Concurrency Adjuster interactive client logic
|
|
744
|
+
// Live Concurrency Adjuster interactive client logic[cite: 1]
|
|
738
745
|
const slider = document.getElementById('concurrencySlider');
|
|
739
746
|
const sliderVal = document.getElementById('sliderValue');
|
|
740
747
|
const simThroughput = document.getElementById('simThroughput');
|
|
@@ -824,6 +831,27 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
824
831
|
}
|
|
825
832
|
}
|
|
826
833
|
});
|
|
834
|
+
|
|
835
|
+
new Chart(document.getElementById('statusDonutChart'), {
|
|
836
|
+
type: 'doughnut',
|
|
837
|
+
data: {
|
|
838
|
+
labels: ['2xx Success', '3xx Redirect', '4xx Client Err', '5xx Server Err'],
|
|
839
|
+
datasets: [{
|
|
840
|
+
data: [${responseMatrix.total2xx}, ${responseMatrix.total3xx}, ${responseMatrix.total4xx}, ${responseMatrix.total5xx}],
|
|
841
|
+
backgroundColor: ['#4ade80', '#cbd5e1', '#fde047', '#f87171'],
|
|
842
|
+
borderWidth: 1,
|
|
843
|
+
borderColor: '#1e293b'
|
|
844
|
+
}]
|
|
845
|
+
},
|
|
846
|
+
options: {
|
|
847
|
+
responsive: true,
|
|
848
|
+
maintainAspectRatio: false,
|
|
849
|
+
plugins: {
|
|
850
|
+
legend: { position: 'top', labels: { color: '#94a3b8', font: { size: 11 } } }
|
|
851
|
+
},
|
|
852
|
+
cutout: '65%'
|
|
853
|
+
}
|
|
854
|
+
});
|
|
827
855
|
</script></body></html>`;
|
|
828
856
|
try {
|
|
829
857
|
fs.writeFileSync(config.outputHtml, htmlContent, "utf-8");
|
|
Binary file
|