Skip to content

Commit

Permalink
less decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Mar 4, 2024
1 parent 1bd8eb7 commit 6258d9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions k6/compare-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ function generateTable(baseCommitHash, baseData, targetCommitHash, targetData) {
const p95Color = getColor(baseP95, targetP95);

table += `| **${key}** | | |\n`;
table += `| - Average Response Time | ${baseAvg} ms | ${targetAvg} ms | ${avgDiff} ${avgColor} |\n`;
table += `| - Max Response Time | ${baseMax} ms | ${targetMax} ms | ${maxDiff} ${maxColor} |\n`;
table += `| - 90th Percentile | ${baseP90} ms | ${targetP90} ms | ${p90Diff} ${p90Color} |\n`;
table += `| - 95th Percentile | ${baseP95} ms | ${targetP95} ms | ${p95Diff} ${p95Color} |\n`;
table += `| - Average Response Time | ${baseAvg.toFixed(2)} ms | ${targetAvg.toFixed(2)} ms | ${avgDiff} ${avgColor} |\n`;
table += `| - Max Response Time | ${baseMax.toFixed(2)} ms | ${targetMax.toFixed(2)} ms | ${maxDiff} ${maxColor} |\n`;
table += `| - 90th Percentile | ${baseP90.toFixed(2)} ms | ${targetP90.toFixed(2)} ms | ${p90Diff} ${p90Color} |\n`;
table += `| - 95th Percentile | ${baseP95.toFixed(2)} ms | ${targetP95.toFixed(2)} ms | ${p95Diff} ${p95Color} |\n`;
}

const baseDuration = baseData['Test Run Duration'].toFixed(2);
Expand Down

0 comments on commit 6258d9e

Please sign in to comment.