GIT.Harvie.CZ
/
svn
/
Cll1h
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some work
[svn/Cll1h/.git]
/
demos
/
performance
/
test-performance.sh
diff --git
a/demos/performance/test-performance.sh
b/demos/performance/test-performance.sh
index a31b74a7b6ced99b15064c9a81e936ff14ebd626..de36065d590cbd5acb2b858794da125d63f6df07 100755
(executable)
--- a/
demos/performance/test-performance.sh
+++ b/
demos/performance/test-performance.sh
@@
-1,51
+1,60
@@
#!/bin/sh
cat print.rb
#!/bin/sh
cat print.rb
-echo "Running..."
-time ./print.rb > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./print.rb > /dev/null
+echo
cat print.py
cat print.py
-echo "Running..."
-time ./print.py > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./print.py > /dev/null
+echo
cat xrange.py
cat xrange.py
-echo "Running..."
-time ./xrange.py > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./xrange.py > /dev/null
+echo
cat echo.php
cat echo.php
-echo "Running..."
-time ./echo.php > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./echo.php > /dev/null
+echo
cat print.pl
cat print.pl
-echo "Running..."
-time ./print.pl > /dev/null
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./print.pl > /dev/null
+echo
cat cout.cpp
cat cout.cpp
-echo "Compiling..."
-time g++ -O2 cout.cpp -o cout
-echo "Running..."
-time ./cout > /dev/null
+echo
-n
"Compiling..."
+time
-f "%E total, %U user, %S sys"
g++ -O2 cout.cpp -o cout
+echo
-n
"Running..."
+time
-f "%E total, %U user, %S sys"
./cout > /dev/null
+echo
cat cll1-print.c
cat cll1-print.c
-echo "Compiling..."
-time gcc -O2 cll1-print.c -o cll1-print
-echo "Running..."
-time ./cll1-print > /dev/null
+echo -n "Compiling..."
+time -f "%E total, %U user, %S sys" gcc -O2 cll1-print.c -o cll1-print
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./cll1-print > /dev/null
+echo
cat printf.c
cat printf.c
-echo "Compiling..."
-time gcc -O2 printf.c -o printf
-echo "Running..."
-time ./printf > /dev/null
+echo -n "Compiling..."
+time -f "%E total, %U user, %S sys" gcc -O2 printf.c -o printf
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./printf > /dev/null
+echo
cat puts.c
cat puts.c
-echo "Compiling..."
-time gcc -O2 puts.c -o puts
-echo "Running..."
-time ./puts > /dev/null
+echo -n "Compiling..."
+time -f "%E total, %U user, %S sys" gcc -O2 puts.c -o puts
+echo -n "Running..."
+time -f "%E total, %U user, %S sys" ./puts > /dev/null
+echo
cat fputs.c
cat fputs.c
-echo "Compiling..."
-time gcc -O2 fputs.c -o fputs
-echo "Running..."
-time ./fputs > /dev/null
+echo
-n
"Compiling..."
+time
-f "%E total, %U user, %S sys"
gcc -O2 fputs.c -o fputs
+echo
-n
"Running..."
+time
-f "%E total, %U user, %S sys"
./fputs > /dev/null
This page took
0.158978 seconds
and
4
git commands to generate.