X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-performance2.sh;h=b75ce5c23c8c22b81af83747dcb797a965bb18d7;hb=67db9ef19d8b36eb84357b6e6477b7791b59182f;hp=7298303f185eb9ba3c3e6b5c2250f8c45020484d;hpb=c3eef81ff1a2fff494c9064196510e9fa22e23fb;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-performance2.sh b/demos/performance/test-performance2.sh index 7298303..b75ce5c 100755 --- a/demos/performance/test-performance2.sh +++ b/demos/performance/test-performance2.sh @@ -1,37 +1,61 @@ #!/bin/sh cat print2.rb -echo "Running..." -time ./print2.rb > /dev/null +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./print2.rb > /dev/null +echo cat print2.py -echo "Running..." -time ./print2.py > /dev/null +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./print2.py > /dev/null +echo + +cat xrange2.py +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./xrange2.py > /dev/null +echo + +cat echo2.php +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./echo2.php > /dev/null +echo + +cat write2.c +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 write2.c -o write2 +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./write2 > /dev/null +echo cat cout2.cpp -echo "Compiling..." -time g++ -O4 cout2.cpp -o cout2 -echo "Running..." -time ./cout2 > /dev/null +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" g++ -O2 cout2.cpp -o cout2 +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./cout2 > /dev/null +echo cat print2.pl -echo "Running..." -time ./print2.pl > /dev/null - -cat cll1-print2.c -echo "Compiling..." -time gcc -O4 cll1-print2.c -o cll1-print2 -echo "Running..." -time ./cll1-print2 > /dev/null +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./print2.pl > /dev/null +echo cat printf2.c -echo "Compiling..." -time gcc -O4 printf2.c -o printf2 -echo "Running..." -time ./printf2 > /dev/null +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 printf2.c -o printf2 +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./printf2 > /dev/null +echo + +cat cll1-print2.c +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 cll1-print2.c -o cll1-print2 +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./cll1-print2 > /dev/null +echo cat fputs2.c -echo "Compiling..." -time gcc -O4 fputs2.c -o fputs2 -echo "Running..." -time ./fputs2 > /dev/null +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 fputs2.c -o fputs2 +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./fputs2 > /dev/null +echo