| 1 | #!/bin/sh |
| 2 | |
| 3 | cat print2.rb |
| 4 | echo -n "Running..." |
| 5 | time -f "%E total, %U user, %S sys, %F page faults" ./print2.rb > /dev/null |
| 6 | echo |
| 7 | |
| 8 | cat print2.py |
| 9 | echo -n "Running..." |
| 10 | time -f "%E total, %U user, %S sys, %F page faults" ./print2.py > /dev/null |
| 11 | echo |
| 12 | |
| 13 | cat xrange2.py |
| 14 | echo -n "Running..." |
| 15 | time -f "%E total, %U user, %S sys, %F page faults" ./xrange2.py > /dev/null |
| 16 | echo |
| 17 | |
| 18 | cat echo2.php |
| 19 | echo -n "Running..." |
| 20 | time -f "%E total, %U user, %S sys, %F page faults" ./echo2.php > /dev/null |
| 21 | echo |
| 22 | |
| 23 | cat write2.c |
| 24 | echo -n "Compiling..." |
| 25 | time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 write2.c -o write2 |
| 26 | echo -n "Running..." |
| 27 | time -f "%E total, %U user, %S sys, %F page faults" ./write2 > /dev/null |
| 28 | echo |
| 29 | |
| 30 | cat cout2.cpp |
| 31 | echo -n "Compiling..." |
| 32 | time -f "%E total, %U user, %S sys, %F page faults" g++ -O2 cout2.cpp -o cout2 |
| 33 | echo -n "Running..." |
| 34 | time -f "%E total, %U user, %S sys, %F page faults" ./cout2 > /dev/null |
| 35 | echo |
| 36 | |
| 37 | cat print2.pl |
| 38 | echo -n "Running..." |
| 39 | time -f "%E total, %U user, %S sys, %F page faults" ./print2.pl > /dev/null |
| 40 | echo |
| 41 | |
| 42 | cat printf2.c |
| 43 | echo -n "Compiling..." |
| 44 | time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 printf2.c -o printf2 |
| 45 | echo -n "Running..." |
| 46 | time -f "%E total, %U user, %S sys, %F page faults" ./printf2 > /dev/null |
| 47 | echo |
| 48 | |
| 49 | |
| 50 | cat cll1-print2.c |
| 51 | echo -n "Compiling..." |
| 52 | time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 cll1-print2.c -o cll1-print2 |
| 53 | echo -n "Running..." |
| 54 | time -f "%E total, %U user, %S sys, %F page faults" ./cll1-print2 > /dev/null |
| 55 | echo |
| 56 | |
| 57 | cat fputs2.c |
| 58 | echo -n "Compiling..." |
| 59 | time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 fputs2.c -o fputs2 |
| 60 | echo -n "Running..." |
| 61 | time -f "%E total, %U user, %S sys, %F page faults" ./fputs2 > /dev/null |
| 62 | echo |
| 63 | |
| 64 | cat fwrite2.c |
| 65 | echo -n "Compiling..." |
| 66 | time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 fwrite2.c -o fwrite2 |
| 67 | echo -n "Running..." |
| 68 | time -f "%E total, %U user, %S sys, %F page faults" ./fwrite2 > /dev/null |
| 69 | echo |