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