mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Remove unused/obsolete scripts
This commit is contained in:
parent
6c8abceecd
commit
9c8980a673
5 changed files with 0 additions and 89 deletions
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
|
||||||
|
|
||||||
cargo build --release --bin aquatic
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
|
||||||
|
|
||||||
cargo run --profile "release-debug" --bin aquatic -- $@
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue