diff --git a/scripts/build-aquatic.sh b/scripts/build-aquatic.sh deleted file mode 100755 index f053369..0000000 --- a/scripts/build-aquatic.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -. ./scripts/env-native-cpu-without-avx-512 - -cargo build --release --bin aquatic diff --git a/scripts/flamegraph-aquatic-udp-on-linux.sh b/scripts/flamegraph-aquatic-udp-on-linux.sh deleted file mode 100755 index 977d0cb..0000000 --- a/scripts/flamegraph-aquatic-udp-on-linux.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# Profile -perf record --call-graph=dwarf,16384 -e cpu-clock -F 997 target/release/aquatic_udp - -# Generate flamegraph (make sure nginx is installed for stdout path) -# Info: https://gist.github.com/dlaehnemann/df31787c41bd50c0fe223df07cf6eb89 -perf script | stackcollapse-perf.pl | c++filt | flamegraph.pl > /var/www/html/flame.svg \ No newline at end of file diff --git a/scripts/run-aquatic.sh b/scripts/run-aquatic.sh deleted file mode 100755 index 1ce91c4..0000000 --- a/scripts/run-aquatic.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -. ./scripts/env-native-cpu-without-avx-512 - -cargo run --profile "release-debug" --bin aquatic -- $@ diff --git a/scripts/setup-bench-on-debian.sh b/scripts/setup-bench-on-debian.sh deleted file mode 100755 index e79fd50..0000000 --- a/scripts/setup-bench-on-debian.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# Run this to setup benchmark prerequisites on debian - -set -e - -echo "This script installs various dependencies for benchmarking aquatic." -echo "It is meant for be run on a Debian buster system after OS install." - -read -p "Setup benchmarking prerequisites? [y/N]" -n 1 -r -if [[ ! $REPLY =~ ^[Yy]$ ]] -then - [[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 -fi - -apt-get update && apt-get upgrade -y -apt-get install -y vim screen build-essential libz-dev cvs htop curl linux-perf cmake c++filt numactl git nginx - -curl https://sh.rustup.rs -sSf | sh - -echo 'export RUSTFLAGS="-Ctarget-cpu=native"' >> ~/.profile -echo 'export EDITOR=vim' >> ~/.profile -echo 'net.core.rmem_max=104857600' >> /etc/sysctl.d/local.conf -echo 'net.core.rmem_default=104857600' >> /etc/sysctl.d/local.conf - -sysctl -p - -source ~/.profile - -cd ~ -mkdir -p projects -cd projects - -# Download and compile opentracker and dependencies - -wget https://www.fefe.de/libowfat/libowfat-0.32.tar.xz -tar -xf libowfat-0.32.tar.xz -rm libowfat-0.32.tar.xz -mv libowfat-0.32 libowfat -cd libowfat -make -cd .. - -git clone git://erdgeist.org/opentracker -cd opentracker -sed -i "s/^OPTS_production=-O3/OPTS_production=-O3 -march=native -mtune=native/g" Makefile -make -cp opentracker.conf.example config -cd .. - -# Download and compile aquatic - -git clone https://github.com/greatest-ape/aquatic.git -cd aquatic -export RUSTFLAGS="-C target-cpu=native" -cargo build --release --bin aquatic_udp -cargo build --release --bin aquatic_udp_load_test -cd .. - -# Download flamegraph stuff - -git clone https://github.com/brendangregg/FlameGraph -cd FlameGraph -echo 'export PATH="$HOME/projects/FlameGraph:$PATH"' >> ~/.profile -source ~/.profile diff --git a/scripts/test.sh b/scripts/test.sh deleted file mode 100755 index 3e695db..0000000 --- a/scripts/test.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Not chosen for exact values, only to be larger than defaults -export QUICKCHECK_TESTS=2000 -export QUICKCHECK_GENERATOR_SIZE=1000 - -cargo test