COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/benchmark/benchmark @ 718:75d36edc6bc4

Last change on this file since 718:75d36edc6bc4 was 718:75d36edc6bc4, checked in by Alpar Juttner, 16 years ago

Ready to run the first test series.

  • Property exe set to *
File size: 855 bytes
Line 
1#!/bin/bash
2
3function runtest () # prefix, prog, args
4{
5    echo $1 1>&2
6    $2 $3 $4 $5 $6 $7 $8 $9|awk '{print "'$1'",$0}'
7}
8
9function runalltest() #postfix, CXX, CXXFLAGS
10{
11    echo $1 1>&2
12    make clean >/dev/null
13    make CXX="$2" CXXFLAGS="$3"  >/dev/null
14    {
15        runtest HCUBE19 hcube 19
16        runtest GRBENCH graph-bench
17    } | awk "{print \$0, \"$1\"}"
18}
19
20runalltest "gcc-3.3 -O2"                 g++ "-O2"
21runalltest "gcc-3.3 -O2-march=pentium-m" g++ "-O2 -march=pentium-m"
22runalltest "gcc-3.3 -O3"                 g++ "-O3"
23runalltest "gcc-3.3 -O3-march=pentium-m" g++ "-O3 -march=pentium-m"
24
25runalltest "gcc-3.4 -O2"                 g++-3.4 "-O2"
26runalltest "gcc-3.4 -O2-march=pentium-m" g++-3.4 "-O2 -march=pentium-m"
27runalltest "gcc-3.4 -O3"                 g++-3.4 "-O3"
28runalltest "gcc-3.4 -O3-march=pentium-m" g++-3.4 "-O3 -march=pentium-m"
29
Note: See TracBrowser for help on using the repository browser.