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