Skip to content

Commit

Permalink
Add total time to stats table; add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed Jun 27, 2024
1 parent f202fb2 commit f1108f8
Show file tree
Hide file tree
Showing 7 changed files with 9,893 additions and 337 deletions.
13 changes: 12 additions & 1 deletion packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,16 @@ program
data
});

const startDuration = Date.now();

const { results, logs } = await run(
parallel,
options,
runEventCallback(spinner)
);

const endDuration = Date.now();

spinner.stop();

if (debug) {
Expand Down Expand Up @@ -216,7 +221,13 @@ program
renderChart(results);
}

renderStatsTable(failedRequests, okRequests);
renderStatsTable(
failedRequests,
okRequests,
TABLE_TYPES.compact,
startDuration,
endDuration
);

success(`\n Finished run of ${results.length} iterations ✅ `);

Expand Down
Loading

0 comments on commit f1108f8

Please sign in to comment.