blaze-performance-tester 3.1.25 → 3.1.26
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 +20 -0
- package/dist/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -540,6 +540,26 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
540
540
|
const estimatedMonthlyCost = (cards.throughput * 0.045 * 24 * 30).toFixed(2);
|
|
541
541
|
const recommendedCpuCores = Math.max(2, Math.ceil(cards.saturationKneePoint / 75));
|
|
542
542
|
const recommendedRamGb = recommendedCpuCores * 2;
|
|
543
|
+
const rightSizingHtml = `
|
|
544
|
+
<div class="card" style="margin-top: 2rem; background: #131c2e; border: 1px solid #1e293b;">
|
|
545
|
+
<h3 style="color: #a855f7; display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; margin-bottom: 1rem; border-bottom: 1px solid #1e293b; padding-bottom: 0.5rem;">
|
|
546
|
+
\u{1F5A5}\uFE0F Infrastructure Right-Sizing & Cloud Cost Optimization
|
|
547
|
+
</h3>
|
|
548
|
+
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;">
|
|
549
|
+
<div style="background: #090d16; padding: 1.25rem; border-radius: 6px; border: 1px solid #1e293b; text-align: center;">
|
|
550
|
+
<div class="card-title" style="color: #94a3b8;">Recommended Compute</div>
|
|
551
|
+
<div style="font-size: 1.75rem; font-weight: bold; color: #a855f7; margin-top: 0.4rem;">${recommendedCpuCores} Cores</div>
|
|
552
|
+
</div>
|
|
553
|
+
<div style="background: #090d16; padding: 1.25rem; border-radius: 6px; border: 1px solid #1e293b; text-align: center;">
|
|
554
|
+
<div class="card-title" style="color: #94a3b8;">Recommended Memory</div>
|
|
555
|
+
<div style="font-size: 1.75rem; font-weight: bold; color: #a855f7; margin-top: 0.4rem;">${recommendedRamGb} GB RAM</div>
|
|
556
|
+
</div>
|
|
557
|
+
<div style="background: #090d16; padding: 1.25rem; border-radius: 6px; border: 1px solid #1e293b; text-align: center;">
|
|
558
|
+
<div class="card-title" style="color: #94a3b8;">Est. Scale Cost / Month</div>
|
|
559
|
+
<div style="font-size: 1.75rem; font-weight: bold; color: #10b981; margin-top: 0.4rem;">$${estimatedMonthlyCost}</div>
|
|
560
|
+
</div>
|
|
561
|
+
</div>
|
|
562
|
+
</div>`;
|
|
543
563
|
const firstTimestamp = rawRequests[0]?.timestampMs || Date.now();
|
|
544
564
|
const scatterPoints = rawRequests.slice(0, 180).map((r) => ({
|
|
545
565
|
x: Number(((r.timestampMs - firstTimestamp) / 1e3).toFixed(2)),
|
|
Binary file
|