de10bad2c0c54063b38bec89448999402d3e242a
[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, %t KB average size" ./print.rb > /dev/null
6 echo
7
8 cat print.py
9 echo -n "Running..."
10 time -f "%E total, %U user, %S sys, %t KB average size" ./print.py > /dev/null
11 echo
12
13 cat xrange.py
14 echo -n "Running..."
15 time -f "%E total, %U user, %S sys, %t KB average size" ./xrange.py > /dev/null
16 echo
17
18 cat echo.php
19 echo -n "Running..."
20 time -f "%E total, %U user, %S sys, %t KB average size" ./echo.php > /dev/null
21 echo
22
23 cat print.pl
24 echo -n "Running..."
25 time -f "%E total, %U user, %S sys, %t KB average size" ./print.pl > /dev/null
26 echo
27
28 cat cout.cpp
29 echo -n "Compiling..."
30 time -f "%E total, %U user, %S sys, %t KB average size" g++ -O2 cout.cpp -o cout
31 echo -n "Running..."
32 time -f "%E total, %U user, %S sys, %t KB average size" ./cout > /dev/null
33
34 echo
35 cat cll1-print.c
36 echo -n "Compiling..."
37 time -f "%E total, %U user, %S sys, %t KB average size" gcc -O2 cll1-print.c -o cll1-print
38 echo -n "Running..."
39 time -f "%E total, %U user, %S sys, %t KB average size" ./cll1-print > /dev/null
40 echo
41
42 cat printf.c
43 echo -n "Compiling..."
44 time -f "%E total, %U user, %S sys, %t KB average size" gcc -O2 printf.c -o printf
45 echo -n "Running..."
46 time -f "%E total, %U user, %S sys, %t KB average size" ./printf > /dev/null
47 echo
48
49 cat puts.c
50 echo -n "Compiling..."
51 time -f "%E total, %U user, %S sys, %t KB average size" gcc -O2 puts.c -o puts
52 echo -n "Running..."
53 time -f "%E total, %U user, %S sys, %t KB average size" ./puts > /dev/null
54 echo
55
56 cat fputs.c
57 echo -n "Compiling..."
58 time -f "%E total, %U user, %S sys, %t KB average size" gcc -O2 fputs.c -o fputs
59 echo -n "Running..."
60 time -f "%E total, %U user, %S sys, %t KB average size" ./fputs > /dev/null
This page took 0.407359 seconds and 3 git commands to generate.