diff --git a/perf/impl/rust-libp2p/yamux-v0.12/Makefile b/perf/impl/rust-libp2p/yamux-v0.12/Makefile new file mode 100644 index 000000000..ac0a580eb --- /dev/null +++ b/perf/impl/rust-libp2p/yamux-v0.12/Makefile @@ -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 diff --git a/perf/runner/src/versions.ts b/perf/runner/src/versions.ts index 6666adcf6..e7e29cd98 100644 --- a/perf/runner/src/versions.ts +++ b/perf/runner/src/versions.ts @@ -15,6 +15,11 @@ export const versions: Array = [ 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",