TRUE, FALSE and MAYBE
[svn/Cll1h/.git] / demos / performance / test-performance.sh
CommitLineData
420bb771 1#!/bin/sh
81088cec 2
b84246fd 3cat print.rb
283bc497 4echo -n "Running..."
24c437c2 5time -f "%E total, %U user, %S sys" ./print.rb > /dev/null
283bc497 6echo
b84246fd 7
420bb771 8cat print.py
283bc497 9echo -n "Running..."
24c437c2 10time -f "%E total, %U user, %S sys" ./print.py > /dev/null
283bc497 11echo
81088cec 12
72c9d7a0 13cat xrange.py
283bc497 14echo -n "Running..."
24c437c2 15time -f "%E total, %U user, %S sys" ./xrange.py > /dev/null
283bc497 16echo
72c9d7a0 17
ba41861f 18cat echo.php
283bc497 19echo -n "Running..."
24c437c2 20time -f "%E total, %U user, %S sys" ./echo.php > /dev/null
283bc497 21echo
d8394559 22
420bb771 23cat print.pl
283bc497 24echo -n "Running..."
24c437c2 25time -f "%E total, %U user, %S sys" ./print.pl > /dev/null
283bc497 26echo
81088cec 27
ba41861f 28cat cout.cpp
283bc497 29echo -n "Compiling..."
24c437c2 30time -f "%E total, %U user, %S sys" g++ -O2 cout.cpp -o cout
283bc497 31echo -n "Running..."
24c437c2 32time -f "%E total, %U user, %S sys" ./cout > /dev/null
ba41861f 33
283bc497 34echo
420bb771 35cat cll1-print.c
283bc497 36echo -n "Compiling..."
24c437c2 37time -f "%E total, %U user, %S sys" gcc -O2 cll1-print.c -o cll1-print
283bc497 38echo -n "Running..."
24c437c2 39time -f "%E total, %U user, %S sys" ./cll1-print > /dev/null
283bc497 40echo
81088cec 41
420bb771 42cat printf.c
283bc497 43echo -n "Compiling..."
24c437c2 44time -f "%E total, %U user, %S sys" gcc -O2 printf.c -o printf
283bc497 45echo -n "Running..."
24c437c2 46time -f "%E total, %U user, %S sys" ./printf > /dev/null
283bc497 47echo
81088cec 48
420bb771 49cat puts.c
283bc497 50echo -n "Compiling..."
24c437c2 51time -f "%E total, %U user, %S sys" gcc -O2 puts.c -o puts
283bc497 52echo -n "Running..."
24c437c2 53time -f "%E total, %U user, %S sys" ./puts > /dev/null
283bc497 54echo
81088cec 55
420bb771 56cat fputs.c
283bc497 57echo -n "Compiling..."
24c437c2 58time -f "%E total, %U user, %S sys" gcc -O2 fputs.c -o fputs
283bc497 59echo -n "Running..."
24c437c2 60time -f "%E total, %U user, %S sys" ./fputs > /dev/null
This page took 0.158226 seconds and 4 git commands to generate.