Skip to content

Commit

Permalink
chore: log output
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 17, 2023
1 parent b967bdb commit 7f647f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perf/impl/js-libp2p/next/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export async function main (runServer, serverIpAddress, transport, uploadBytes,
for await (const output of node.services.perf.measurePerformance(multiaddr(`/ip4/${host}/tcp/${port}`), uploadBytes, downloadBytes)) {
// eslint-disable-next-line no-console
console.log(JSON.stringify(output))
// eslint-disable-next-line no-console
console.error(JSON.stringify(output))
}

await node.stop()
Expand Down
2 changes: 2 additions & 0 deletions perf/impl/js-libp2p/v0.46/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export async function main (runServer, serverIpAddress, transport, uploadBytes,
for await (const output of node.services.perf.measurePerformance(multiaddr(`/ip4/${host}/tcp/${port}`), uploadBytes, downloadBytes)) {
// eslint-disable-next-line no-console
console.log(JSON.stringify(output))
// eslint-disable-next-line no-console
console.error(JSON.stringify(output))
}

await node.stop()
Expand Down

0 comments on commit 7f647f9

Please sign in to comment.