Skip to content

Commit

Permalink
Test rust-libp2p rust-yamux v0.12 upgrade
Browse files Browse the repository at this point in the history
Benchmark performance impact of rust-yamux v0.12 upgrade on rust-libp2p, more
specifically libp2p/rust-libp2p#3013.
  • Loading branch information
mxinden committed Aug 1, 2023
1 parent 003ac2c commit 25bfc6c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions perf/impl/rust-libp2p/yamux-v0.12/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
commitSha := 23564bcffd6da774760d261c819424389cfce60c

all: perf

perf: rust-libp2p-${commitSha}/target/release/perf
cp ./rust-libp2p-${commitSha}/target/release/perf .

rust-libp2p-${commitSha}/target/release/perf: rust-libp2p-${commitSha}
docker run --rm --user "$(shell id -u):$(shell id -g)" -v "$(shell pwd)/rust-libp2p-${commitSha}":/usr/src/myapp -w /usr/src/myapp rust:1.69 cargo build --release --bin perf

rust-libp2p-${commitSha}: rust-libp2p-${commitSha}.zip
unzip -o rust-libp2p-${commitSha}.zip

rust-libp2p-${commitSha}.zip:
wget -O $@ "https://github.com/libp2p/rust-libp2p/archive/${commitSha}.zip"

clean:
rm rust-libp2p-*.zip
rm -rf rust-libp2p-*
rm perf

.PHONY: all clean
5 changes: 5 additions & 0 deletions perf/runner/src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export const versions: Array<Version> = [
implementation: "rust-libp2p",
transportStacks: ["tcp", "quic-v1"]
},
{
id: "yamux-v0.12",
implementation: "rust-libp2p",
transportStacks: ["tcp", "quic-v1"]
},
{
id: "v0.52",
implementation: "rust-libp2p-quinn",
Expand Down

0 comments on commit 25bfc6c

Please sign in to comment.