X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-performance.sh;h=cadcbfd1090bbd372f64dfce284479449ce3cb70;hb=67db9ef19d8b36eb84357b6e6477b7791b59182f;hp=7c9af2f8cebb6b08ea0ab183686219f676a8f430;hpb=ba41861f8912ff0c31924d7f76afbafe79758183;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-performance.sh b/demos/performance/test-performance.sh index 7c9af2f..cadcbfd 100755 --- a/demos/performance/test-performance.sh +++ b/demos/performance/test-performance.sh @@ -1,47 +1,60 @@ #!/bin/sh cat print.rb -echo "Running..." -time ./print.rb > /dev/null +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./print.rb > /dev/null +echo cat print.py -echo "Running..." -time ./print.py > /dev/null +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./print.py > /dev/null +echo + +cat xrange.py +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./xrange.py > /dev/null +echo cat echo.php -echo "Running..." -time ./echo.php > /dev/null +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./echo.php > /dev/null +echo + +cat write.c +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 write.c -o write +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./write > /dev/null cat print.pl -echo "Running..." -time ./print.pl > /dev/null +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./print.pl > /dev/null +echo cat cout.cpp -echo "Compiling..." -time g++ -O2 cout.cpp -o cout -echo "Running..." -time ./cout > /dev/null +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" g++ -O2 cout.cpp -o cout +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./cout > /dev/null +echo cat cll1-print.c -echo "Compiling..." -time gcc -O2 cll1-print.c -o cll1-print -echo "Running..." -time ./cll1-print > /dev/null +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 cll1-print.c -o cll1-print +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./cll1-print > /dev/null +echo cat printf.c -echo "Compiling..." -time gcc -O2 printf.c -o printf -echo "Running..." -time ./printf > /dev/null +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 printf.c -o printf +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./printf > /dev/null +echo cat puts.c -echo "Compiling..." -time gcc -O2 puts.c -o puts -echo "Running..." -time ./puts > /dev/null - -cat fputs.c -echo "Compiling..." -time gcc -O2 fputs.c -o fputs -echo "Running..." -time ./fputs > /dev/null +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 puts.c -o puts +echo -n "Running..." +time -f "%E total, %U user, %S sys, %O outputs" ./puts > /dev/null +echo