COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/benchmark/benchmark @ 737:2d867176d10e

Last change on this file since 737:2d867176d10e was 723:7ded6acc2dfe, checked in by Alpar Juttner, 20 years ago

Doesn't compile 5 times for the five execution.

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