fwrite test added
[svn/Cll1h/.git] / demos / performance / test-performance.sh
index be50320259ecf0dfb69514824feedf99ca998085..9c76b3f0c95e60f2671e33042b5118dc48e0ceea 100755 (executable)
@@ -1,43 +1,73 @@
 #!/bin/sh
 
 cat print.rb
-echo "Running..."
-time ./print.rb > /dev/null
+echo -n "Running..."
+time -f  "%E total, %U user, %S sys, %F page faults" ./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, %F page faults" ./print.py > /dev/null
+echo
 
-cat cout.cpp
-echo "Compiling..."
-time g++ -O2 cout.cpp -o cout
-echo "Running..."
-time ./cout > /dev/null
+cat xrange.py
+echo -n "Running..."
+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, %F page faults" ./echo.php > /dev/null
+echo
+
+cat write.c
+echo -n "Compiling..."
+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, %F page faults" ./write > /dev/null
 
 cat print.pl
-echo "Running..."
-time ./print.pl > /dev/null
+echo -n "Running..."
+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, %F page faults" g++ -O2 cout.cpp -o cout
+echo -n "Running..."
+time -f  "%E total, %U user, %S sys, %F page faults" ./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, %F page faults" gcc -O2 cll1-print.c -o cll1-print
+echo -n "Running..."
+time -f  "%E total, %U user, %S sys, %F page faults" ./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, %F page faults" gcc -O2 printf.c -o printf
+echo -n "Running..."
+time -f  "%E total, %U user, %S sys, %F page faults" ./printf > /dev/null
+echo
 
 cat puts.c
-echo "Compiling..."
-time gcc -O2 puts.c -o puts
-echo "Running..."
-time ./puts > /dev/null
+echo -n "Compiling..."
+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, %F page faults" ./puts > /dev/null
+echo
 
 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, %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
This page took 0.131425 seconds and 4 git commands to generate.