From da877b9867370811b1e1fcbd74c4a4b431da6d5b Mon Sep 17 00:00:00 2001 From: ehmicky Date: Sun, 5 Sep 2021 23:30:22 +0200 Subject: [PATCH] Fix comments --- src/run/sample/main.js | 2 +- src/run/sample/payload.js | 2 +- src/run/sample/repeat.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/run/sample/main.js b/src/run/sample/main.js index 5d3c3679d..5f767b1f6 100644 --- a/src/run/sample/main.js +++ b/src/run/sample/main.js @@ -28,7 +28,7 @@ export const measureSample = async function ( // This includes the duration to perform each step and doing IPC so that the // actual sample duration does not deviate too much if one of those happened to // be slow. -// We only keep the last `measureDuration` instead of taking the median of all +// We only keep the last `measureDuration` instead of taking the mean of all // previous ones, so that `measureDuration` quickly adapts to machine slowdowns. const measureNewSample = async function (payload, server) { const measureDurationStart = now() diff --git a/src/run/sample/payload.js b/src/run/sample/payload.js index 85cd11bb5..b9ceb5370 100644 --- a/src/run/sample/payload.js +++ b/src/run/sample/payload.js @@ -61,7 +61,7 @@ const getRepeatPayload = function (repeat, minLoopDuration) { // computation and preview reporting // - Due to the above point, the real sample duration is less close to the // target. -// The value does not impact `stats.median` much though. +// The value does not impact `stats.mean` much though. const getMaxLoops = function ({ repeat, repeatLast, diff --git a/src/run/sample/repeat.js b/src/run/sample/repeat.js index 5ef2a1970..83cd67476 100644 --- a/src/run/sample/repeat.js +++ b/src/run/sample/repeat.js @@ -120,7 +120,7 @@ const FAST_MEDIAN_RATE = 10 // - Excluding first samples except when there was not enough duration to // measure more: // - This rely on using a `duration` configuration property -// - This creates a big difference of stats (especially median and max) +// - This creates a big difference of stats (especially mean and max) // depending on that duration // - This can lead to comparing combinations with and without the cold start // included in their stats