X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fbenchmark.ts;h=c29b9abcdb6c9e20f4eb841dbd9234032ae419cb;hb=8a7abfef88b5fc69f8809dcbb511e923597a0163;hp=5dcf9b01b51472d37f04d2d47e003a19126c7fdc;hpb=421ff4618da64f0849353383f690a014024c40da;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index 5dcf9b01b..c29b9abcd 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts @@ -1,7 +1,7 @@ import { registerTSPaths } from '../server/helpers/register-ts-paths' registerTSPaths() -import * as autocannon from 'autocannon' +import autocannon, { printResult } from 'autocannon' import { writeJson } from 'fs-extra' import { createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils' import { Video, VideoPrivacy } from '@shared/models' @@ -149,7 +149,7 @@ async function run () { Object.assign(testResult, { title: test.title, path: test.path }) finalResult.push(testResult) - console.log(autocannon.printResult(testResult)) + console.log(printResult(testResult)) } if (outfile) await writeJson(outfile, finalResult)