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