| 1 | #!/bin/sh |
| 2 | |
| 3 | cat print.rb |
| 4 | echo -n "Running..." |
| 5 | time -f "%E total, %U user, %S sys" ./print.rb > /dev/null |
| 6 | echo |
| 7 | |
| 8 | cat print.py |
| 9 | echo -n "Running..." |
| 10 | time -f "%E total, %U user, %S sys" ./print.py > /dev/null |
| 11 | echo |
| 12 | |
| 13 | cat xrange.py |
| 14 | echo -n "Running..." |
| 15 | time -f "%E total, %U user, %S sys" ./xrange.py > /dev/null |
| 16 | echo |
| 17 | |
| 18 | cat echo.php |
| 19 | echo -n "Running..." |
| 20 | time -f "%E total, %U user, %S sys" ./echo.php > /dev/null |
| 21 | echo |
| 22 | |
| 23 | cat print.pl |
| 24 | echo -n "Running..." |
| 25 | time -f "%E total, %U user, %S sys" ./print.pl > /dev/null |
| 26 | echo |
| 27 | |
| 28 | cat cout.cpp |
| 29 | echo -n "Compiling..." |
| 30 | time -f "%E total, %U user, %S sys" g++ -O2 cout.cpp -o cout |
| 31 | echo -n "Running..." |
| 32 | time -f "%E total, %U user, %S sys" ./cout > /dev/null |
| 33 | |
| 34 | echo |
| 35 | cat cll1-print.c |
| 36 | echo -n "Compiling..." |
| 37 | time -f "%E total, %U user, %S sys" gcc -O2 cll1-print.c -o cll1-print |
| 38 | echo -n "Running..." |
| 39 | time -f "%E total, %U user, %S sys" ./cll1-print > /dev/null |
| 40 | echo |
| 41 | |
| 42 | cat printf.c |
| 43 | echo -n "Compiling..." |
| 44 | time -f "%E total, %U user, %S sys" gcc -O2 printf.c -o printf |
| 45 | echo -n "Running..." |
| 46 | time -f "%E total, %U user, %S sys" ./printf > /dev/null |
| 47 | echo |
| 48 | |
| 49 | cat puts.c |
| 50 | echo -n "Compiling..." |
| 51 | time -f "%E total, %U user, %S sys" gcc -O2 puts.c -o puts |
| 52 | echo -n "Running..." |
| 53 | time -f "%E total, %U user, %S sys" ./puts > /dev/null |
| 54 | echo |
| 55 | |
| 56 | cat fputs.c |
| 57 | echo -n "Compiling..." |
| 58 | time -f "%E total, %U user, %S sys" gcc -O2 fputs.c -o fputs |
| 59 | echo -n "Running..." |
| 60 | time -f "%E total, %U user, %S sys" ./fputs > /dev/null |