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