9c76b3f0c95e60f2671e33042b5118dc48e0ceea
[svn/Cll1h/.git] / demos / performance / test-performance.sh
1 #!/bin/sh
2
3 cat print.rb
4 echo -n "Running..."
5 time -f "%E total, %U user, %S sys, %F page faults" ./print.rb > /dev/null
6 echo
7
8 cat print.py
9 echo -n "Running..."
10 time -f "%E total, %U user, %S sys, %F page faults" ./print.py > /dev/null
11 echo
12
13 cat xrange.py
14 echo -n "Running..."
15 time -f "%E total, %U user, %S sys, %F page faults" ./xrange.py > /dev/null
16 echo
17
18 cat echo.php
19 echo -n "Running..."
20 time -f "%E total, %U user, %S sys, %F page faults" ./echo.php > /dev/null
21 echo
22
23 cat write.c
24 echo -n "Compiling..."
25 time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 write.c -o write
26 echo -n "Running..."
27 time -f "%E total, %U user, %S sys, %F page faults" ./write > /dev/null
28
29 cat print.pl
30 echo -n "Running..."
31 time -f "%E total, %U user, %S sys, %F page faults" ./print.pl > /dev/null
32 echo
33
34 cat cout.cpp
35 echo -n "Compiling..."
36 time -f "%E total, %U user, %S sys, %F page faults" g++ -O2 cout.cpp -o cout
37 echo -n "Running..."
38 time -f "%E total, %U user, %S sys, %F page faults" ./cout > /dev/null
39
40 echo
41 cat cll1-print.c
42 echo -n "Compiling..."
43 time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 cll1-print.c -o cll1-print
44 echo -n "Running..."
45 time -f "%E total, %U user, %S sys, %F page faults" ./cll1-print > /dev/null
46 echo
47
48 cat printf.c
49 echo -n "Compiling..."
50 time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 printf.c -o printf
51 echo -n "Running..."
52 time -f "%E total, %U user, %S sys, %F page faults" ./printf > /dev/null
53 echo
54
55 cat puts.c
56 echo -n "Compiling..."
57 time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 puts.c -o puts
58 echo -n "Running..."
59 time -f "%E total, %U user, %S sys, %F page faults" ./puts > /dev/null
60 echo
61
62 cat fputs.c
63 echo -n "Compiling..."
64 time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 fputs.c -o fputs
65 echo -n "Running..."
66 time -f "%E total, %U user, %S sys, %F page faults" ./fputs > /dev/null
67 echo
68
69 cat fwrite.c
70 echo -n "Compiling..."
71 time -f "%E total, %U user, %S sys, %F page faults" gcc -O2 fwrite.c -o fwrite
72 echo -n "Running..."
73 time -f "%E total, %U user, %S sys, %F page faults" ./fwrite > /dev/null
This page took 0.302966 seconds and 3 git commands to generate.