#!/bin/sh
cat print.rb
-echo "Running..."
-time ./print.rb > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./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, %t KB average size" ./print.py > /dev/null
+echo
cat xrange.py
-echo "Running..."
-time ./xrange.py > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./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, %t KB average size" ./echo.php > /dev/null
+echo
cat print.pl
-echo "Running..."
-time ./print.pl > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./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, %t KB average size" g++ -O2 cout.cpp -o cout
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./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, %t KB average size" gcc -O2 cll1-print.c -o cll1-print
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./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, %t KB average size" gcc -O2 printf.c -o printf
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./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, %t KB average size" gcc -O2 puts.c -o puts
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./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, %t KB average size" gcc -O2 fputs.c -o fputs
+echo -n "Running..."
+time -f "%E total, %U user, %S sys, %t KB average size" ./fputs > /dev/null