Skip to content

Commit 3e3f585

Browse files
committed
PR feedback
1 parent bf6c9b3 commit 3e3f585

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev-packages/node-overhead-gh-action/lib/getOverheadMeasurements.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ async function startAutocannonProcess(autocannonCommand) {
120120
export async function getOverheadMeasurements() {
121121
const GET = {
122122
baseline: await getMeasurements(undefined, 'yarn test:get'),
123-
withInstrument: await getMeasurements('./src/instrument.mjs', 'yarn test:post'),
124-
withInstrumentErrorOnly: await getMeasurements('./src/instrument-error-only.mjs', 'yarn test:post'),
123+
withInstrument: await getMeasurements('./src/instrument.mjs', 'yarn test:get'),
124+
withInstrumentErrorOnly: await getMeasurements('./src/instrument-error-only.mjs', 'yarn test:get'),
125125
};
126126

127127
const POST = {

dev-packages/node-overhead-gh-action/lib/markdown-table-formatter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function hasChanges(baseScenarios, currentScenarios, threshold = 0) {
5151
return true;
5252
}
5353

54-
return Math.abs((currentResult.size - baseResult.size) / baseResult.size) * 100 > threshold;
54+
return Math.abs((currentResult - baseResult) / baseResult) * 100 > threshold;
5555
});
5656
});
5757
}

0 commit comments

Comments
 (0)