Add the shootout script and results

This commit is contained in:
Bradlee Speice 2019-09-08 22:10:02 -04:00
parent 952576b579
commit 6bfdb82707
5 changed files with 7142 additions and 0 deletions

36
run_shootout.sh Executable file
View File

@ -0,0 +1,36 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
function run_shootout() {
RUN_PREFIX="$1"
OUTPUT_NAME="$2"
for f in data_feeds*.pcap; do
echo "$f" >> "$OUTPUT_NAME"
echo $RUN_PREFIX ./target/release/md_shootout -f "$f"
sudo $RUN_PREFIX ./target/release/md_shootout -f "$f" >> "$OUTPUT_NAME"
done
}
PREFIXES=(
"|shootout_normal.txt" # No CPU Pinning
"taskset 2|shootout_taskset.txt" # Pin to CPU 1
"taskset 2 nice -n-19|shootout_nice.txt" # Pin to CPU 2 with highest priority
# Kinda dangerous, caused the processor to lock when running in graphical session,
# but seemed OK in runlevel 3 until the kernel switched time sources
#"taskset 2 chrt -f 99|shootout_chrt.txt" # Pin to CPU 3 with real-time priority
)
RUN_COUNT=10
for prefix in "${PREFIXES[@]}"; do
(
RUN_PREFIX="$(echo "$prefix" | cut -d'|' -f1)"
OUTPUT_NAME="$(echo "$prefix" | cut -d'|' -f2)"
rm "$OUTPUT_NAME"
for i in $(seq 1 $RUN_COUNT); do
run_shootout "$RUN_PREFIX" "$OUTPUT_NAME"
done
)
wait
done

1226
shootout_chrt.txt Normal file

File diff suppressed because it is too large Load Diff

1960
shootout_nice.txt Normal file

File diff suppressed because it is too large Load Diff

1960
shootout_normal.txt Normal file

File diff suppressed because it is too large Load Diff

1960
shootout_taskset.txt Normal file

File diff suppressed because it is too large Load Diff