Changeset 2240:d93c034d3c98 in lemon-0.x
- Timestamp:
- 10/12/06 13:54:30 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2984
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/edge_lookup.cc
r2238 r2240 75 75 }; 76 76 77 class EL478 {79 public:80 Graph &_g;81 EdgeLookUp4<Graph> _el;82 EL4(Graph &g) :_g(g), _el(g) {}83 void operator()()84 {85 Edge e;77 // class EL4 78 // { 79 // public: 80 // Graph &_g; 81 // EdgeLookUp4<Graph> _el; 82 // EL4(Graph &g) :_g(g), _el(g) {} 83 // void operator()() 84 // { 85 // Edge e; 86 86 87 for(NodeIt v(_g);v!=INVALID;++v)88 for(NodeIt u(_g);u!=INVALID;++u)89 e=_el(u,v);90 }87 // for(NodeIt v(_g);v!=INVALID;++v) 88 // for(NodeIt u(_g);u!=INVALID;++u) 89 // e=_el(u,v); 90 // } 91 91 92 };92 // }; 93 93 94 94 int main(int, char**argv) … … 126 126 TimeStamp t3 = runningTimeTest(EL2(g),1); 127 127 TimeStamp t4 = runningTimeTest(EL3(g),1); 128 TimeStamp t5 = runningTimeTest(EL4(g),1);128 // TimeStamp t5 = runningTimeTest(EL4(g),1); 129 129 130 130 std::cout << t1.userTime()/N/N << ' ' … … 132 132 << t3.userTime()/N/N << ' ' 133 133 << t4.userTime()/N/N << ' ' 134 << t5.userTime()/N/N << std::endl; 134 // << t5.userTime()/N/N 135 << std::endl; 135 136 } 136 137
Note: See TracChangeset
for help on using the changeset viewer.