COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/benchmark/benchmark @ 742:235fd36336b7

Last change on this file since 742:235fd36336b7 was 742:235fd36336b7, checked in by Alpar Juttner, 16 years ago
  • bfs-bench added
  • hypercube generators moved to bench-tools.h
  • new benchmark script
  • Property exe set to *
File size: 936 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;
7    for ((i=1;i<=5;i++))
8      do
9      $2 $3 $4 $5 $6 $7 $8 $9;
10    done |
11    awk '{print "'$1'",$0}'
12}
13
14function 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 GRBENCH graph-bench
22    } | awk "{print \$0, \"$1\"}"
23}
24
25runalltest "gcc-3.3 -O2"                 g++ "-O2"
26runalltest "gcc-3.3 -O2-march=pentium-m" g++ "-O2 -march=pentium-m"
27runalltest "gcc-3.3 -O3"                 g++ "-O3"
28runalltest "gcc-3.3 -O3-march=pentium-m" g++ "-O3 -march=pentium-m"
29
30runalltest "gcc-3.4 -O2"                 g++-3.4 "-O2"
31runalltest "gcc-3.4 -O2-march=pentium-m" g++-3.4 "-O2 -march=pentium-m"
32runalltest "gcc-3.4 -O3"                 g++-3.4 "-O3"
33runalltest "gcc-3.4 -O3-march=pentium-m" g++-3.4 "-O3 -march=pentium-m"
34
Note: See TracBrowser for help on using the repository browser.