Skip to content

Commit

Permalink
Use cargo from devcontainer in comparison benchmarks (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d authored Oct 6, 2024
1 parent 7c196f0 commit ed41710
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ With the exception of [RIPE-NCC/whois], the AS3257 object is included as a strin

Benchmarks for the parser itself are done using `cargo bench`, while any external parser is benchmarked using [hyperfine].\
To run specific benchmarks, execute `/.run` in the directory of the respective parser.
It sets up dependencies and runs `sudo` so it is only recommended to be used in an isolated environment and is only tested on Ubuntu 22.04, other platforms might require additional dependencies to be installed.
It sets up dependencies and runs `sudo` so it is only recommended to be used in an isolated environment and is only tested using the devcontainer, other platforms might require additional dependencies to be installed.

[RPSL::Parser]: https://metacpan.org/pod/RPSL::Parser
[irrdnet/irrd]: https://github.com/irrdnet/irrd
Expand Down
2 changes: 0 additions & 2 deletions docs/benchmark/RPSL-Parser/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export NEEDRESTART_MODE=a
export DEBIAN_FRONTEND=noninteractive
sudo apt update && sudo apt install -y build-essential
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
cargo install --locked hyperfine

sudo PERL_MM_USE_DEFAULT=1 cpan App::cpanminus
Expand Down
1 change: 0 additions & 1 deletion docs/benchmark/irrdnet_irrd/requirements.txt

This file was deleted.

4 changes: 1 addition & 3 deletions docs/benchmark/irrdnet_irrd/run.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
export NEEDRESTART_MODE=a
export DEBIAN_FRONTEND=noninteractive
sudo apt update && sudo apt install -y build-essential python3-venv python3-pip
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
cargo install --locked hyperfine

python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
pip3 install irrd==4.4.2

hyperfine -N --warmup 3 "python3 main.py"
2 changes: 0 additions & 2 deletions docs/benchmark/whois-rpsl/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export NEEDRESTART_MODE=a
export DEBIAN_FRONTEND=noninteractive
sudo apt update && sudo apt install -y build-essential openjdk-18-jre openjdk-18-jdk maven
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
cargo install --locked hyperfine

mvn package
Expand Down

0 comments on commit ed41710

Please sign in to comment.