fastify-busboy/benchmarks/common/resultUtils.js
raw| 1 | 'use strict' |
| 2 | |
| 3 | const { exportResults } = require('photofinish') |
| 4 | |
| 5 | function outputResults (benchmark, benchmarkResults) { |
| 6 | console.log( |
| 7 | `Mean time for ${ |
| 8 | benchmark.benchmarkEntryName |
| 9 | } is ${benchmarkResults.meanTime.getTimeInNanoSeconds()} nanoseconds` |
| 10 | ) |
| 11 | |
| 12 | exportResults(benchmarkResults, { exportPath: '_results' }) |
| 13 | } |
| 14 | |
| 15 | module.exports = { |
| 16 | outputResults |
| 17 | } |