benchmark/benchmark
author deba
Wed, 01 Mar 2006 10:25:30 +0000
changeset 1991 d7442141d9ef
parent 754 2471ef33b4a0
permissions -rwxr-xr-x
The graph adadptors can be alteration observed.
In most cases it uses the adapted graph alteration notifiers.
Only special case is now the UndirGraphAdaptor, where
we have to proxy the signals from the graph.

The SubBidirGraphAdaptor is removed, because it doest not
gives more feature than the EdgeSubGraphAdaptor<UndirGraphAdaptor<Graph>>.

The ResGraphAdaptor is based on this composition.
     1 #!/bin/bash
     2 
     3 function runtest () # prefix, prog, args
     4 {
     5     echo $1 1>&2
     6     $2 $3 $4 $5 $6 $7 $8 $9 >/dev/null;
     7     for ((i=1;i<=3;i++))
     8       do
     9       $2 $3 $4 $5 $6 $7 $8 $9;
    10     done |
    11     awk '{print "'$1'",$0}'
    12 }
    13 
    14 function runalltest() #postfix, CXX, CXXFLAGS
    15 {
    16     echo $1 1>&2
    17     make clean >/dev/null
    18     make CXX="$2" CXXFLAGS="$3"  >/dev/null
    19     {
    20 	runtest HCUBE19 hcube 19
    21 	runtest BFS13-5000 hcube 13 5000
    22 	runtest BFS10-50000 hcube 10 50000
    23 	runtest GRBENCH graph-bench
    24     } | awk "{print \$0, \"$1\"}"
    25 }
    26 
    27 runalltest "gcc-3.3 -O2"                 g++ "-O2"
    28 runalltest "gcc-3.3 -O2-march=pentium-m" g++ "-O2 -march=pentium-m"
    29 runalltest "gcc-3.3 -O3"                 g++ "-O3"
    30 runalltest "gcc-3.3 -O3-march=pentium-m" g++ "-O3 -march=pentium-m"
    31 
    32 runalltest "gcc-3.4 -O2"                 g++-3.4 "-O2"
    33 runalltest "gcc-3.4 -O2-march=pentium-m" g++-3.4 "-O2 -march=pentium-m"
    34 runalltest "gcc-3.4 -O3"                 g++-3.4 "-O3"
    35 runalltest "gcc-3.4 -O3-march=pentium-m" g++-3.4 "-O3 -march=pentium-m"
    36          
    37 runalltest "icc -O2"                 icc "-O2"
    38 runalltest "icc -O2-march=pentium-m" icc "-O2 -march=pentium-m"
    39 runalltest "icc -O3"                 icc "-O3"
    40 runalltest "icc -O3-march=pentium-m" icc "-O3 -march=pentium-m"
    41