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