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
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