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