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