Skip to content

Instantly share code, notes, and snippets.

@helloIAmPau
Created January 13, 2014 23:11
Show Gist options
  • Save helloIAmPau/8409912 to your computer and use it in GitHub Desktop.
Save helloIAmPau/8409912 to your computer and use it in GitHub Desktop.
#!/bin/bash
function scimark {
echo "downloading scimark"
mkdir -p ./benchmarks
curl http://math.nist.gov/scimark2/scimark2lib.zip > ./benchmarks/sci.zip
cd ./benchmarks
unzip sci.zip
echo "ready to run: 3"
sleep 1
echo 2
sleep 1
echo 1
echo "scimark results" > sci_results
echo "scimark started"
for i in `seq 1 10`; do
LARGE=""
for r in `seq 1 2`; do
if [ "$r" = 2 ]; then LARGE="-large"; else LARGE=""; fi
echo "run $i $LARGE" | tee -a sci_results
java -cp ./ jnt.scimark2.commandline $LARGE | tee -a sci_results
done
done
echo "scimark ended"
}
function iozone {
echo "downloading iozone"
mkdir -p ./benchmarks
curl http://www.iozone.org/src/current/iozone3_420.tar > ./benchmarks/io.tar
cd ./benchmarks
tar xvf io.tar
cd iozone3_420/src/current
make linux
echo "ready to run: 3"
sleep 1
echo 2
sleep 1
echo 1
echo "iozone started"
./iozone -a -b io_results
echo "iozone ended"
}
function octane {
mkdir -p ./benchmarks
cd ./benchmarks
npm install benchmark-octane
echo "ready to run: 3"
sleep 1
echo 2
sleep 1
echo 1
echo "octane results" > octane_results
echo "octane started"
node ./node_modules/benchmark-octane/run.js | tee octane_results
echo "octane ended"
}
LWD="`pwd`"
sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install build-essential curl nodejs
scimark
cd "$LWD"
iozone
cd "$LWD"
octane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment