summaryrefslogtreecommitdiffstats
path: root/fastify-busboy/benchmarks/common/resultUtils.js
blob: ec7bce708787e5a1d1bd9567608806b90148fb3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'

const { exportResults } = require('photofinish')

function outputResults (benchmark, benchmarkResults) {
  console.log(
        `Mean time for ${
            benchmark.benchmarkEntryName
        } is ${benchmarkResults.meanTime.getTimeInNanoSeconds()} nanoseconds`
  )

  exportResults(benchmarkResults, { exportPath: '_results' })
}

module.exports = {
  outputResults
}