Skip to content

Commit

Permalink
chore: just js
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 18, 2023
1 parent 4b461c7 commit ae083cc
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
16 changes: 8 additions & 8 deletions perf/impl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ QUIC_GO_SUBDIRS := $(wildcard quic-go/*/.)
JS_SUBDIRS := $(wildcard js-libp2p/*/.)

all: $(RUST_SUBDIRS) $(GO_SUBDIRS) $(HTTPS_SUBDIRS) $(QUIC_GO_SUBDIRS) $(JS_SUBDIRS)
$(RUST_SUBDIRS):
$(MAKE) -C $@
$(GO_SUBDIRS):
$(MAKE) -C $@
$(HTTPS_SUBDIRS):
$(MAKE) -C $@
$(QUIC_GO_SUBDIRS):
$(MAKE) -C $@
#$(RUST_SUBDIRS):
# $(MAKE) -C $@
#$(GO_SUBDIRS):
# $(MAKE) -C $@
#$(HTTPS_SUBDIRS):
# $(MAKE) -C $@
#$(QUIC_GO_SUBDIRS):
# $(MAKE) -C $@
$(JS_SUBDIRS):
$(MAKE) -C $@

Expand Down
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/next/perf
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ for ((i = 1; i <= $#; i++)); do
fi
done

export DEBUG=libp2p*,*:trace

# Run perf
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
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
2 changes: 2 additions & 0 deletions perf/impl/js-libp2p/v0.46/perf
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ for ((i = 1; i <= $#; i++)); do
fi
done

export DEBUG=libp2p*,*:trace

# Run perf
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
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 @@ -39,7 +39,7 @@ export const versions: Array<Version> = [
id: "v0.31",
implementation: "go-libp2p",
transportStacks: ["tcp", "quic-v1"]
},
},*/
{
id: "v0.46",
implementation: "js-libp2p",
Expand Down

0 comments on commit ae083cc

Please sign in to comment.