#!/bin/sh
echo 
echo
echo "This is an xglurbules test script"
echo 
echo "If you are feeling kind and have time then this will"
echo "roughly benchmark xglurbules, this won't make much sense"
echo "except to me, you can send the output of this script to"
echo "steve@pepcross.com if you're feeling kind and maybe It'll"
echo "help me make this code better."
echo
echo "if you just want to run xglurbules or xglurbules-noshm then"
echo "hit ctrl-c now and run one of those instead, otherwise ..."
echo 
echo "... hit RETURN to run the tests (5 minutes)"

read blah

echo "You might want to edit the output of this script in case the dmesg"
echo "grep pulled out something other than what type of CPU you are using"
echo "it has honourable intentions anyway."
echo
echo "If you get bored, just hit q in each window that pops up, and it"
echo "should go away again"
echo
uname -a

uptime

dmesg | grep CPU | tail -3

echo
echo "2000 particles, 400 Frames at 320x200 : "
xglurbules -l 400 -x 320 -y 200 -n 2000 | grep averaging
echo "2000 particles, 400 Frames at 320x200 : (+SHM)"
xglurbules-noshm -l 400 -x 320 -y 200 -n 2000 | grep averaging

echo
echo "20000 particules, 400 Frames at 320x200:"
xglurbules -l 400 -x 320 -y 200 -n 20000 | grep averaging
echo "20000 particules, 400 Frames at 320x200: (+SHM)"
xglurbules-noshm -l 400 -x 320 -y 200 -n 20000 | grep averaging

echo
echo "2000 particles, 400 Frames at 640x512 :"
xglurbules -l 400 -x 640 -y 512 -n 2000 | grep averaging
echo "2000 particles, 400 Frames at 640x512 : (+SHM)"
xglurbules-noshm -l 400 -x 640 -y 512 -n 2000 | grep averaging

echo "Done"