diff --git a/docs/benchmark/README.md b/docs/benchmark/README.md index c735b38..b2c2c3e 100644 --- a/docs/benchmark/README.md +++ b/docs/benchmark/README.md @@ -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 diff --git a/docs/benchmark/RPSL-Parser/run.sh b/docs/benchmark/RPSL-Parser/run.sh index 9bfef99..9c38d54 100755 --- a/docs/benchmark/RPSL-Parser/run.sh +++ b/docs/benchmark/RPSL-Parser/run.sh @@ -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 diff --git a/docs/benchmark/irrdnet_irrd/requirements.txt b/docs/benchmark/irrdnet_irrd/requirements.txt deleted file mode 100644 index 84c3d86..0000000 --- a/docs/benchmark/irrdnet_irrd/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -irrd==4.4.2 diff --git a/docs/benchmark/irrdnet_irrd/run.sh b/docs/benchmark/irrdnet_irrd/run.sh index ab818d1..806b930 100755 --- a/docs/benchmark/irrdnet_irrd/run.sh +++ b/docs/benchmark/irrdnet_irrd/run.sh @@ -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" diff --git a/docs/benchmark/whois-rpsl/run.sh b/docs/benchmark/whois-rpsl/run.sh index 991ad21..f583be9 100755 --- a/docs/benchmark/whois-rpsl/run.sh +++ b/docs/benchmark/whois-rpsl/run.sh @@ -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