blaze-performance-tester 1.1.17 → 1.1.19

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 CHANGED
@@ -30,15 +30,17 @@ console.log(`
30
30
  `);
31
31
  try {
32
32
  const metrics = runBlazeCore(targetScriptPath, vusCount, durationSeconds, csvOutputPath);
33
- const totalRequests = metrics.totalRequests ?? 0;
34
- const failedRequests = metrics.failedRequests ?? 0;
35
- const executionDurationMs = metrics.executionDurationMs ?? 0;
36
- const avgLatencyMs = metrics.avgLatencyMs ?? 0;
37
- const maxLatencyMs = metrics.maxLatencyMs ?? 0;
33
+ console.log("\u{1F575}\uFE0F DEBUG - Raw Rust Object:", metrics);
34
+ const totalRequests = metrics.total_requests ?? 0;
35
+ const failedRequests = metrics.failed_requests ?? 0;
36
+ const executionDurationMs = metrics.execution_duration_ms ?? 0;
37
+ const avgLatencyMs = metrics.avg_latency_ms ?? 0;
38
+ const maxLatencyMs = metrics.max_latency_ms ?? 0;
38
39
  const actualDurationSec = executionDurationMs / 1e3;
39
40
  const throughput = (totalRequests / (actualDurationSec || 1)).toFixed(2);
40
41
  const errorRate = (failedRequests / (totalRequests || 1) * 100).toFixed(2);
41
- console.log(`\u{1F4CA} ==================== Blaze Performance Report ====================`);
42
+ console.log(`
43
+ \u{1F4CA} ==================== Blaze Performance Report ====================`);
42
44
  console.log(` Target Script: ${targetScript}`);
43
45
  console.log(` Active VUs: ${vusCount} parallel threads`);
44
46
  console.log(` Elapsed Time: ${actualDurationSec.toFixed(2)} seconds`);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blaze-performance-tester",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "description": "A high-performance, multi-threaded load testing engine built with Rust and QuickJS.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",