updated: performance tests compiled with -O4 (even better results for C<<1 !)
[svn/Cll1h/.git] / demos / performance / test-performance.sh
CommitLineData
420bb771 1#!/bin/sh
81088cec 2
420bb771 3cat print.py
4echo "Running..."
dfe0680a 5time ./print.py > /dev/null
81088cec 6
d8394559 7cat cout.cpp
8echo "Compiling..."
cc0de701 9time g++ -O4 cout.cpp -o cout
d8394559 10echo "Running..."
11time ./cout > /dev/null
12
420bb771 13cat print.pl
14echo "Running..."
dfe0680a 15time ./print.pl > /dev/null
81088cec 16
420bb771 17cat cll1-print.c
81088cec 18echo "Compiling..."
cc0de701 19time gcc -O4 cll1-print.c -o cll1-print
420bb771 20echo "Running..."
dfe0680a 21time ./cll1-print > /dev/null
81088cec 22
420bb771 23cat printf.c
81088cec 24echo "Compiling..."
cc0de701 25time gcc -O4 printf.c -o printf
420bb771 26echo "Running..."
dfe0680a 27time ./printf > /dev/null
81088cec 28
420bb771 29cat puts.c
81088cec 30echo "Compiling..."
cc0de701 31time gcc -O4 puts.c -o puts
420bb771 32echo "Running..."
dfe0680a 33time ./puts > /dev/null
81088cec 34
420bb771 35cat fputs.c
81088cec 36echo "Compiling..."
cc0de701 37time gcc -O4 fputs.c -o fputs
420bb771 38echo "Running..."
dfe0680a 39time ./fputs > /dev/null
This page took 0.156086 seconds and 4 git commands to generate.