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