update performance test
[svn/Cll1h/.git] / demos / performance / test-performance2.sh
1 #!/bin/sh
2
3 cat print2.rb
4 echo -n "Running..."
5 time -f "%E total, %U user, %S sys, %O outputs" ./print2.rb > /dev/null
6 echo
7
8 cat print2.py
9 echo -n "Running..."
10 time -f "%E total, %U user, %S sys, %O outputs" ./print2.py > /dev/null
11 echo
12
13 cat xrange2.py
14 echo -n "Running..."
15 time -f "%E total, %U user, %S sys, %O outputs" ./xrange2.py > /dev/null
16 echo
17
18 cat echo2.php
19 echo -n "Running..."
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
28 echo
29
30 cat cout2.cpp
31 echo -n "Compiling..."
32 time -f "%E total, %U user, %S sys, %O outputs" g++ -O2 cout2.cpp -o cout2
33 echo -n "Running..."
34 time -f "%E total, %U user, %S sys, %O outputs" ./cout2 > /dev/null
35 echo
36
37 cat print2.pl
38 echo -n "Running..."
39 time -f "%E total, %U user, %S sys, %O outputs" ./print2.pl > /dev/null
40 echo
41
42 cat printf2.c
43 echo -n "Compiling..."
44 time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 printf2.c -o printf2
45 echo -n "Running..."
46 time -f "%E total, %U user, %S sys, %O outputs" ./printf2 > /dev/null
47 echo
48
49 cat cll1-print2.c
50 echo -n "Compiling..."
51 time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 cll1-print2.c -o cll1-print2
52 echo -n "Running..."
53 time -f "%E total, %U user, %S sys, %O outputs" ./cll1-print2 > /dev/null
54 echo
55
56 cat fputs2.c
57 echo -n "Compiling..."
58 time -f "%E total, %U user, %S sys, %O outputs" gcc -O2 fputs2.c -o fputs2
59 echo -n "Running..."
60 time -f "%E total, %U user, %S sys, %O outputs" ./fputs2 > /dev/null
61 echo
This page took 0.30091 seconds and 4 git commands to generate.