From 434938271ffd19655e322404673edeaf490b606a Mon Sep 17 00:00:00 2001 From: AlejandroCabeza Date: Fri, 23 Aug 2024 00:58:40 +0000 Subject: [PATCH] chore: add rust-libp2p@v0.54.0 to perf --- perf/impl/rust-libp2p/v0.54/Makefile | 22 ++++++++++++++++++++++ perf/runner/versionsInput.json | 8 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 perf/impl/rust-libp2p/v0.54/Makefile diff --git a/perf/impl/rust-libp2p/v0.54/Makefile b/perf/impl/rust-libp2p/v0.54/Makefile new file mode 100644 index 0000000..6116eaf --- /dev/null +++ b/perf/impl/rust-libp2p/v0.54/Makefile @@ -0,0 +1,22 @@ +commitSha := + +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.73 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/versionsInput.json b/perf/runner/versionsInput.json index 5667141..33dd5de 100644 --- a/perf/runner/versionsInput.json +++ b/perf/runner/versionsInput.json @@ -66,5 +66,13 @@ "transportStacks": [ "tcp" ] + }, + { + "id": "v0.54", + "implementation": "rust-libp2p", + "transportStacks": [ + "tcp", + "quic-v1" + ] } ]