updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / c-ray / c-ray-run-full
blobf567747f00f09f1f0fd6cef1a41375ecd6e19a8f
1 #!/bin/sh
2 _threads=`cat /proc/cpuinfo | grep -c processor`
3 echo "Single thread test"
4 cat /usr/share/c-ray/scene | c-ray-f > foo_st1.ppm
5 cat /usr/share/c-ray/sphfract | c-ray-f > foo_st2.ppm
6 cat /usr/share/c-ray/sphfract | c-ray-f -s 1024x768 -r 8 > foo_st3.ppm
7 cat /usr/share/c-ray/scene | c-ray-f -s 7500x3500 > foo_st4.ppm
8 echo
9 echo "Multi thread test"
10 cat /usr/share/c-ray/scene | c-ray-mt -t $_threads > foo_mt1.ppm
11 cat /usr/share/c-ray/sphfract | c-ray-mt -t $_threads > foo_mt2.ppm
12 cat /usr/share/c-ray/sphfract | c-ray-mt -t $_threads -s 1024x768 -r 8 > foo_mt3.ppm
13 cat /usr/share/c-ray/scene | c-ray-mt -t $_threads -s 7500x3500 > foo_mt4.ppm