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