Changeset 14733 for branches/PushGP/HeuristicLab.PushGP/PushGP.Cli
- Timestamp:
- 03/08/17 11:57:42 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/PushGP.Cli/Program.cs
r14727 r14733 36 36 37 37 static async Task EvaluateStepwise(string code) { 38 var interpreter = new PushGpInterpreter(new Push GpConfiguration {38 var interpreter = new PushGpInterpreter(new PushConfiguration { 39 39 TopLevelPushCode = false 40 40 }); … … 90 90 91 91 static void PerformanceTestInterpreter() { 92 var program = Push GPParser.Parse("( 5 INTEGER.DUP INTEGER.+ )");92 var program = PushParser.Parse("( 5 INTEGER.DUP INTEGER.+ )"); 93 93 94 94 var interpreter = new PushGpInterpreter(); … … 106 106 107 107 static void PerformanceParallelTestInterpreter() { 108 var program = Push GPParser.Parse("( 5 INTEGER.DUP INTEGER.+ )");108 var program = PushParser.Parse("( 5 INTEGER.DUP INTEGER.+ )"); 109 109 //var program = new ExecExpandExpression(new Expression[] 110 110 //{ … … 117 117 var iterations = 100; 118 118 var amount = 600000; 119 var pool = new Push GpInterpreterPool(iterations);119 var pool = new PushInterpreterPool(iterations); 120 120 121 121 sw.Start(); … … 152 152 var execCounters = new int[parallelism]; 153 153 154 var config = new Push GpConfiguration {154 var config = new PushConfiguration { 155 155 EvalPushLimit = 4096, 156 156 //IsCodeStackEnabled = false, … … 162 162 }; 163 163 164 var pool = new Push GpInterpreterPool(config);164 var pool = new PushInterpreterPool(config); 165 165 166 166 sw.Start(); … … 185 185 186 186 static void TestPool() { 187 var pool = new Push GpInterpreterPool();187 var pool = new PushInterpreterPool(); 188 188 var normal = new PushGpInterpreter(); 189 189 int id; … … 217 217 Console.WriteLine(sw.Elapsed); 218 218 219 var pool = new Push GpInterpreterPool();219 var pool = new PushInterpreterPool(); 220 220 sw.Restart(); 221 221 for (var i = 0; i < iterations; i++) { … … 231 231 static void TestSimplifier() { 232 232 var interpreter = new PushGpInterpreter(); 233 var program = Push GPParser.Parse("( 5 INTEGER.DUP FLOAT.+ INTEGER.+ )") as ExecExpandExpression;233 var program = PushParser.Parse("( 5 INTEGER.DUP FLOAT.+ INTEGER.+ )") as ExecExpandExpression; 234 234 var simplifier = new RandomSimplifier() { Trys = 10 }; 235 235 var random = new FastRandom(1337);
Note: See TracChangeset
for help on using the changeset viewer.