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