#!/bin/bash -e
# This script must be invoked as a sudoer

THE_USER=${SUDO_USER:=$USER}

cd "$(dirname "$0")"
cd Farmhash.Benchmarks
sudo -u $THE_USER make all

echo ""
echo "Executing hardware accelerated farmhash"
nice -n -20 ./benchmark-farmhash

echo ""
echo "Executing non-hardware accelerated farmhash"
nice -n -20 ./benchmark-farmhash-no-ha

#!/bin/bash -e
# This script must be invoked as a sudoer

THE_USER=${SUDO_USER:=$USER}

cd "$(dirname "$0")"
cd Farmhash.Benchmarks
sudo -u $THE_USER make all

nice -n -20 ./benchmark-farmhash
nice -n -20 ./benchmark-farmhash-no-ha

--- 
+++ 
@@ -7,5 +7,10 @@
 cd Farmhash.Benchmarks
 sudo -u $THE_USER make all
 
+echo ""
+echo "Executing hardware accelerated farmhash"
 nice -n -20 ./benchmark-farmhash
+
+echo ""
+echo "Executing non-hardware accelerated farmhash"
 nice -n -20 ./benchmark-farmhash-no-ha
Add echos to cpp benchmark for more context
