Spaces:
Runtime error
Runtime error
File size: 373 Bytes
23ac194 |
1 2 3 4 5 6 7 8 9 10 11 12 |
'use strict'
const benchmark = require('benchmark')
const createError = require('..')
const FastifyError = createError('CODE', 'Not available')
new benchmark.Suite()
.add('FastifyError toString', function () { new FastifyError().toString() }, { minSamples: 100 })
.on('cycle', function onCycle (event) { console.log(String(event.target)) })
.run({ async: false })
|