tests/performance/run.js
/**
 * Log results for `currentTestSample`: mean, standard deviation etc.
 */
Log results for `currentTestSample`: mean, standard deviation etc.
Log results for ` currentTestSample ` : mean standard deviation etc .
function displayTemporaryResults() {
  const testedScenarios = getSamplePerScenarios(currentTestSample);
  for (const testName of Object.keys(testedScenarios)) {
    const scenarioSample = testedScenarios[testName];
    const results = getResultsForSample(scenarioSample);
    console.log(`test name: ${testName}\n` +
                `mean: ${results.mean}\n` +
                `first sample: ${scenarioSample[0]}\n` +
                `last sample: ${scenarioSample[scenarioSample.length - 1]}\n` +
                `variance: ${results.variance}\n` +
                `standard deviation: ${results.standardDeviation}\n` +
                `standard error of mean: ${results.standardErrorOfMean}\n` +
                `moe: ${results.moe}\n`);
  }
}
function displayTemporaryResults ( ) { const testedScenarios = getSamplePerScenarios ( currentTestSample ) ; for ( const testName of Object . keys ( testedScenarios ) ) { const scenarioSample = testedScenarios [ testName ] ; const results = getResultsForSample ( scenarioSample ) ; console . log ( ` ${ testName } \n ` + ` ${ results . mean } \n ` + ` ${ scenarioSample [ 0 ] } \n ` + ` ${ scenarioSample [ scenarioSample . length - 1 ] } \n ` + ` ${ results . variance } \n ` + ` ${ results . standardDeviation } \n ` + ` ${ results . standardErrorOfMean } \n ` + ` ${ results . moe } \n ` ) ; } }
Log results for `currentTestSample`: mean, standard deviation etc.
Log results for ` currentTestSample ` : mean standard deviation etc .
// eslint-disable-next-line no-console