Skip to content

Commit

Permalink
chore: add [email protected] to perf
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Aug 10, 2024
1 parent c97dc62 commit 9ad6149
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions perf/impl/rust-libp2p/v0.54/Makefile
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions perf/runner/versionsInput.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,13 @@
"transportStacks": [
"tcp"
]
},
{
"id": "v0.54",
"implementation": "rust-libp2p",
"transportStacks": [
"tcp",
"quic-v1"
]
}
]

0 comments on commit 9ad6149

Please sign in to comment.