C and C++ compiled with -O2 (there is no -O4 in GCC :-)
[svn/Cll1h/.git] / demos / performance / test-performance2.sh
CommitLineData
81088cec 1#!/bin/sh
81088cec 2
b84246fd 3cat print2.rb
4echo "Running..."
5time ./print2.rb > /dev/null
6
c3eef81f 7cat print2.py
8echo "Running..."
9time ./print2.py > /dev/null
10
d8394559 11cat cout2.cpp
12echo "Compiling..."
bd245bd2 13time g++ -O2 cout2.cpp -o cout2
d8394559 14echo "Running..."
15time ./cout2 > /dev/null
16
81088cec 17cat print2.pl
18echo "Running..."
19time ./print2.pl > /dev/null
20
21cat cll1-print2.c
22echo "Compiling..."
bd245bd2 23time gcc -O2 cll1-print2.c -o cll1-print2
81088cec 24echo "Running..."
25time ./cll1-print2 > /dev/null
26
27cat printf2.c
28echo "Compiling..."
bd245bd2 29time gcc -O2 printf2.c -o printf2
81088cec 30echo "Running..."
31time ./printf2 > /dev/null
32
33cat fputs2.c
34echo "Compiling..."
bd245bd2 35time gcc -O2 fputs2.c -o fputs2
81088cec 36echo "Running..."
37time ./fputs2 > /dev/null
This page took 0.156616 seconds and 4 git commands to generate.