Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #1333

Closed
wants to merge 1 commit into from
Closed

test #1333

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions k6/compare-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const fs = require('fs');

function generateComparisonTable(baseCommitHash, baseMetricsPath, targetCommitHash, targetMetricsPath, outputPath) {
// Load JSON outputs from k6
//test
const baseMetrics = JSON.parse(fs.readFileSync(baseMetricsPath, 'utf8'));
const targetMetrics = JSON.parse(fs.readFileSync(targetMetricsPath, 'utf8'));

Expand Down Expand Up @@ -52,12 +53,12 @@ function generateTable(baseCommitHash, baseData, targetCommitHash, targetData) {
<th colspan="4">Target</th> \
<th colspan="4">Diff</th> \
</tr><tr> '
for (let i = 0; i < 3; i++) {
for (let i = 0; i < 3; i++) {
headers.forEach(header => {
table += `<th>${header}</th>`;
});
}
table += '</tr>';
table += '</tr>';

for (const key of Object.keys(baseData)) {
if (key === 'Test Run Duration') {
Expand Down
Loading