X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-performance.sh;h=9c76b3f0c95e60f2671e33042b5118dc48e0ceea;hb=e1fbb836e8f710979f270ba8fdbc92a8e65f7348;hp=cadcbfd1090bbd372f64dfce284479449ce3cb70;hpb=67db9ef19d8b36eb84357b6e6477b7791b59182f;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-performance.sh b/demos/performance/test-performance.sh index cadcbfd..9c76b3f 100755 --- a/demos/performance/test-performance.sh +++ b/demos/performance/test-performance.sh @@ -2,59 +2,72 @@ cat print.rb echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./print.rb > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./print.rb > /dev/null echo cat print.py echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./print.py > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./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 +time -f "%E total, %U user, %S sys, %F page faults" ./xrange.py > /dev/null echo cat echo.php echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./echo.php > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./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 +time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 write.c -o write echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./write > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./write > /dev/null cat print.pl echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./print.pl > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./print.pl > /dev/null echo cat cout.cpp echo -n "Compiling..." -time -f "%E total, %U user, %S sys, %O outputs" g++ -O2 cout.cpp -o cout +time -f "%E total, %U user, %S sys, %F page faults" g++ -O2 cout.cpp -o cout echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./cout > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./cout > /dev/null echo cat cll1-print.c echo -n "Compiling..." -time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 cll1-print.c -o cll1-print +time -f "%E total, %U user, %S sys, %F page faults" 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 +time -f "%E total, %U user, %S sys, %F page faults" ./cll1-print > /dev/null echo cat printf.c echo -n "Compiling..." -time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 printf.c -o printf +time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 printf.c -o printf echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./printf > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./printf > /dev/null echo cat puts.c echo -n "Compiling..." -time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 puts.c -o puts +time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 puts.c -o puts echo -n "Running..." -time -f "%E total, %U user, %S sys, %O outputs" ./puts > /dev/null +time -f "%E total, %U user, %S sys, %F page faults" ./puts > /dev/null echo + +cat fputs.c +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 fputs.c -o fputs +echo -n "Running..." +time -f "%E total, %U user, %S sys, %F page faults" ./fputs > /dev/null +echo + +cat fwrite.c +echo -n "Compiling..." +time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 fwrite.c -o fwrite +echo -n "Running..." +time -f "%E total, %U user, %S sys, %F page faults" ./fwrite > /dev/null