Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5413 for trunk/sources


Ignore:
Timestamp:
02/03/11 15:58:55 (13 years ago)
Author:
gkronber
Message:

Adapted interpreter tests and improved interpretation performance. #1336

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Compiler/Instruction.cs

    r4068 r5413  
    2525  // should be aligned to 8/16/32 byte
    2626  // size = 4(8) + 1 + 1 + 2 = 8 (12)
    27   public struct Instruction {
     27  public class Instruction {
    2828    // the tree node can hold additional data that is necessary for the execution of this instruction
    2929    public SymbolicExpressionTreeNode dynamicNode;
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/SimpleArithmeticExpressionInterpreterTest.cs

    r5412 r5413  
    7171      SimpleArithmeticExpressionInterpreter interpreter = new SimpleArithmeticExpressionInterpreter();
    7272      double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3);
    73       Assert.IsTrue(nodesPerSec > 15.0e6); // evaluated nodes per seconds must be larger than 15mNodes/sec
     73      Assert.IsTrue(nodesPerSec > 30.0e6); // evaluated nodes per seconds must be larger than 30mNodes/sec
    7474    }
    7575
     
    9090      SimpleArithmeticExpressionInterpreter interpreter = new SimpleArithmeticExpressionInterpreter();
    9191      double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3);
    92       Assert.IsTrue(nodesPerSec > 15.0e6); // evaluated nodes per seconds must be larger than 15mNodes/sec
     92      Assert.IsTrue(nodesPerSec > 30.0e6); // evaluated nodes per seconds must be larger than 30mNodes/sec
    9393    }
    9494
Note: See TracChangeset for help on using the changeset viewer.