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