C and C++ compiled with -O2 (there is no -O4 in GCC :-)
[svn/Cll1h/.git] / demos / performance / test-performance.sh
index 31bb47d8b180d4f7a6d9dbc98671b606e38d8e17..be50320259ecf0dfb69514824feedf99ca998085 100755 (executable)
@@ -10,7 +10,7 @@ time ./print.py > /dev/null
 
 cat cout.cpp
 echo "Compiling..."
-time g++ -O4 cout.cpp -o cout
+time g++ -O2 cout.cpp -o cout
 echo "Running..."
 time ./cout > /dev/null
 
@@ -20,24 +20,24 @@ time ./print.pl > /dev/null
 
 cat cll1-print.c
 echo "Compiling..."
-time gcc -O4 cll1-print.c -o cll1-print
+time gcc -O2 cll1-print.c -o cll1-print
 echo "Running..."
 time ./cll1-print > /dev/null
 
 cat printf.c
 echo "Compiling..."
-time gcc -O4 printf.c -o printf
+time gcc -O2 printf.c -o printf
 echo "Running..."
 time ./printf > /dev/null
 
 cat puts.c
 echo "Compiling..."
-time gcc -O4 puts.c -o puts
+time gcc -O2 puts.c -o puts
 echo "Running..."
 time ./puts > /dev/null
 
 cat fputs.c
 echo "Compiling..."
-time gcc -O4 fputs.c -o fputs
+time gcc -O2 fputs.c -o fputs
 echo "Running..."
 time ./fputs > /dev/null
This page took 0.101142 seconds and 4 git commands to generate.