Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 8, 2023
1 parent b60e4f6 commit dfa467c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion perf/impl/js-libp2p/v0.46/perf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# In case this script is `kill`ed, `kill` its child process, namely the `node`
# process below.
cleanup() {
kill -0 $node_pid
if ps -p $node_pid > /dev/null
then
kill $node_pid
fi
}
trap cleanup EXIT TERM

Expand Down Expand Up @@ -36,6 +39,7 @@ for ((i = 1; i <= $#; i++)); do
done

# Run perf
export DEBUG=libp2p*
node impl/js-libp2p/v0.46/index.js --run-server=$run_server --server-address=$server_address --upload-bytes=$upload_bytes --download-bytes=$download_bytes --transport=$transport &

node_pid=$!
Expand Down
2 changes: 1 addition & 1 deletion perf/runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const argv = yargs
},
'testing': {
type: 'boolean',
default: false,
default: true,
description: 'Run in testing mode',
demandOption: false,
}
Expand Down
4 changes: 2 additions & 2 deletions perf/runner/src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Version = {
}

export const versions: Array<Version> = [
{
/*{
id: "v0.34",
implementation: "quic-go",
transportStacks: ["quic-v1"]
Expand Down Expand Up @@ -34,7 +34,7 @@ export const versions: Array<Version> = [
id: "v0.29",
implementation: "go-libp2p",
transportStacks: ["tcp", "quic-v1"]
},
},*/
{
id: "v0.31",
implementation: "go-libp2p",
Expand Down

0 comments on commit dfa467c

Please sign in to comment.