@@ -27,7 +27,7 @@ namespace {
2727
2828using namespace react ;
2929
30- void runBenchmarkGrid (std::ostream& out)
30+ /* void runBenchmarkGrid(std::ostream& out)
3131{
3232 RUN_BENCHMARK(out, 5, Benchmark_Grid, BenchmarkParams_Grid(20, 10000),
3333 ToposortSTDomain, ToposortDomain, PulsecountDomain);
@@ -40,9 +40,9 @@ void runBenchmarkGrid(std::ostream& out)
4040
4141 RUN_BENCHMARK(out, 5, Benchmark_Grid, BenchmarkParams_Grid(50, 10000),
4242 ToposortSTDomain, ToposortDomain, PulsecountDomain);
43- }
43+ }*/
4444
45- void runBenchmarkRandom (std::ostream& out)
45+ /* void runBenchmarkRandom(std::ostream& out)
4646{
4747 const auto w = 20;
4848 const auto h = 11;
@@ -67,7 +67,7 @@ void runBenchmarkRandom(std::ostream& out)
6767 seed1 *= 2;
6868 seed2 *= 2;
6969 }
70- }
70+ }*/
7171
7272void runBenchmarkFanout (std::ostream& out)
7373{
@@ -80,14 +80,14 @@ void runBenchmarkFanout(std::ostream& out)
8080 // RUN_BENCHMARK(out, 5, Benchmark_Fanout, BenchmarkParams_Fanout(1000, 10000, 0),
8181 // ToposortSTDomain, ToposortDomain, ELMDomain, PulsecountDomain, SourceSetDomain);
8282
83- RUN_BENCHMARK (out, 3 , Benchmark_Fanout, BenchmarkParams_Fanout (10 , 10 , 10 ),
83+ /* RUN_BENCHMARK(out, 3, Benchmark_Fanout, BenchmarkParams_Fanout(10, 10, 10),
8484 ToposortSTDomain, ToposortDomain, PulsecountDomain);
8585
8686 RUN_BENCHMARK(out, 3, Benchmark_Fanout, BenchmarkParams_Fanout(100, 10, 10),
8787 ToposortSTDomain, ToposortDomain, PulsecountDomain);
8888
8989 RUN_BENCHMARK(out, 3, Benchmark_Fanout, BenchmarkParams_Fanout(1000, 10, 10),
90- ToposortSTDomain, ToposortDomain, PulsecountDomain);
90+ ToposortSTDomain, ToposortDomain, PulsecountDomain);*/
9191}
9292
9393void runBenchmarkSequence (std::ostream& out)
@@ -101,14 +101,14 @@ void runBenchmarkSequence(std::ostream& out)
101101 // RUN_BENCHMARK(out, 3, Benchmark_Sequence, BenchmarkParams_Sequence(1000, 10000, 0),
102102 // ToposortSTDomain, ToposortDomain, ELMDomain, PulsecountDomain, SourceSetDomain);
103103
104- RUN_BENCHMARK (out, 3 , Benchmark_Sequence, BenchmarkParams_Sequence (10 , 10 , 10 ),
105- ToposortSTDomain, ToposortDomain, PulsecountDomain);
104+ // RUN_BENCHMARK(out, 3, Benchmark_Sequence, BenchmarkParams_Sequence(10, 10, 10),
105+ // ToposortSTDomain, ToposortDomain, PulsecountDomain);
106106
107- RUN_BENCHMARK (out, 3 , Benchmark_Sequence, BenchmarkParams_Sequence (100 , 10 , 10 ),
108- ToposortSTDomain, ToposortDomain, PulsecountDomain);
107+ // RUN_BENCHMARK(out, 3, Benchmark_Sequence, BenchmarkParams_Sequence(100, 10, 10),
108+ // ToposortSTDomain, ToposortDomain, PulsecountDomain);
109109
110- RUN_BENCHMARK (out, 3 , Benchmark_Sequence, BenchmarkParams_Sequence (1000 , 10 , 10 ),
111- ToposortSTDomain, ToposortDomain, PulsecountDomain);
110+ // RUN_BENCHMARK(out, 3, Benchmark_Sequence, BenchmarkParams_Sequence(1000, 10, 10),
111+ // ToposortSTDomain, ToposortDomain, PulsecountDomain);
112112}
113113
114114void runBenchmarkLifeSim (std::ostream& out)
@@ -119,8 +119,8 @@ void runBenchmarkLifeSim(std::ostream& out)
119119 // RUN_BENCHMARK(std::cout, 1, Benchmark_LifeSim, BenchmarkParams_LifeSim(250, 30, 10000),
120120 // SourceSetDomain, PulsecountDomain);
121121
122- RUN_BENCHMARK (out, 1 , Benchmark_LifeSim, BenchmarkParams_LifeSim (100 , 15 , 10000 ),
123- ToposortSTDomainConc, ToposortDomainConc, PulsecountDomainConc);
122+ // RUN_BENCHMARK(out, 1, Benchmark_LifeSim, BenchmarkParams_LifeSim(100, 15, 10000),
123+ // ToposortSTDomainConc, ToposortDomainConc, PulsecountDomainConc);
124124
125125 // RUN_BENCHMARK(out, 3, Benchmark_LifeSim, BenchmarkParams_LifeSim(100, 50, 100),
126126 // PulsecountDomain, PulsecountDomain);
@@ -130,8 +130,8 @@ void runBenchmarks()
130130{
131131 std::ofstream logfile;
132132
133- std::string path = " Benchmark Results/" + CurrentDateTime () + " .txt" ;
134- logfile.open (path.c_str ());
133+ // std::string path = "Benchmark Results/" + CurrentDateTime() + ".txt";
134+ // logfile.open(path.c_str());
135135
136136 // === GRID
137137 // runBenchmarkGrid(logfile);
@@ -148,14 +148,14 @@ void runBenchmarks()
148148 // runBenchmarkSequence(logfile);
149149
150150 // === LIFESIM
151- runBenchmarkLifeSim (logfile);
151+ // runBenchmarkLifeSim(logfile);
152152
153153 logfile.close ();
154154}
155155
156156void debugBenchmarks ()
157157{
158- using TestDomain = PulsecountDomain;
158+ // using TestDomain = PulsecountDomain;
159159
160160 // RUN_BENCHMARK(std::cout, 1, Benchmark_Grid, BenchmarkParams_Grid(30, 1),
161161 // TestDomain);
@@ -172,8 +172,8 @@ void debugBenchmarks()
172172 // RUN_BENCHMARK(std::cout, 1, Benchmark_Random, BenchmarkParams_Random(10, 25, 10, 0, 10, 25, 25, false),
173173 // ToposortDomain);
174174
175- RUN_BENCHMARK (std::cout, 1 , Benchmark_Random, BenchmarkParams_Random (40 , 11 , 2 , 0 , 1 , 40 , 40 , false , 41556 , 21624 ),
176- TestDomain);
175+ // RUN_BENCHMARK(std::cout, 1, Benchmark_Random, BenchmarkParams_Random(40, 11, 2, 0, 1, 40, 40, false, 41556, 21624),
176+ // TestDomain);
177177
178178 // const auto w = 10;
179179 // const auto h = 11;
@@ -194,21 +194,11 @@ void debugBenchmarks()
194194 // RunBenchmark<1>(Benchmark2<BTokenDomain>());
195195 // RunBenchmark<1>(Benchmark2<SourceSetDomain>());
196196 // RunBenchmark<3>(Benchmark2<ToposortDomain>());
197-
198- #ifdef REACT_ENABLE_LOGGING
199- std::ofstream logfile;
200- logfile.open (" log.txt" );
201-
202- TestDomain::Log ().Write (logfile);
203- logfile.close ();
204- #endif
205197}
206198
207199void profileBenchmark ()
208200{
209- RUN_BENCHMARK (std::cout, 3 , Benchmark_Grid, BenchmarkParams_Grid (100 , 10000 ),
210- // SubtreeDomain);
211- ToposortSTDomain, ToposortDomain, PulsecountDomain, SubtreeDomain);
201+ RUN_BENCHMARK (std::cout, 3 , Benchmark_Grid, BenchmarkParams_Grid (100 , 10000 ));
212202
213203 // RUN_BENCHMARK(std::cout, 1, Benchmark_Grid, BenchmarkParams_Grid(30, 10000),
214204 // SourceSetDomain);
0 commit comments