X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fbenchmark.ts;h=c29b9abcdb6c9e20f4eb841dbd9234032ae419cb;hb=8e7442d0d818ef25240b46dd1115187c7c042a3a;hp=5dcf9b01b51472d37f04d2d47e003a19126c7fdc;hpb=13e13377918b65c30b9334920fef4b43e70b964e;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)