# HG changeset patch # User alpar # Date 1090506480 0 # Node ID a9b1c49440f73031dc9c37bc5453fc7a508c3c13 # Parent 4c9e2f92045856f9906ee1bf750e99f6bf1eaf94 Repeat tests more times. diff -r 4c9e2f920458 -r a9b1c49440f7 src/benchmark/hcube.cc --- a/src/benchmark/hcube.cc Thu Jul 22 14:24:00 2004 +0000 +++ b/src/benchmark/hcube.cc Thu Jul 22 14:28:00 2004 +0000 @@ -4,7 +4,8 @@ #include<hugo/list_graph.h> #include<hugo/smart_graph.h> #include<hugo/dijkstra.h> -#include<../work/jacint/max_flow_no_stack.h> +#include<hugo/max_flow.h> + #include"bench_tools.h" using namespace std; @@ -94,7 +95,7 @@ T.reset(); Graph::EdgeMap<int> map(G); - { + for(int i=0;i<5;i++) { Primes P; for(int i=0;i<dim*(1<<dim);i++) P(); @@ -115,7 +116,8 @@ T.reset(); { Dijkstra<Graph> Dij(G,map); - Dij.run(nodes[0]); + for(int i=0;i<10;i++) + Dij.run(nodes[0]); } PrintTime("DIJKSTRA",T); @@ -123,8 +125,9 @@ { Graph::EdgeMap<int> flow(G); - MaxFlowNoStack<Graph,int> MF(G,nodes[0],nodes[1<<dim-1],map,flow); - MF.run(MF.NO_FLOW); + MaxFlow<Graph,int> MF(G,nodes[0],nodes[1<<dim-1],map,flow); + for(int i=0;i<10;i++) + MF.run(MF.NO_FLOW); } PrintTime("PREFLOW",T);