public OneToThreePipelineQueueThroughputTest() : base("ALL", ITERATIONS) { stepOneQueueProcessor = new FunctionQueueProcessor(FunctionStep.One, stepOneQueue, stepTwoQueue, stepThreeQueue, ITERATIONS - 1); stepTwoQueueProcessor = new FunctionQueueProcessor(FunctionStep.Two, stepOneQueue, stepTwoQueue, stepThreeQueue, ITERATIONS - 1); stepThreeQueueProcessor = new FunctionQueueProcessor(FunctionStep.Three, stepOneQueue, stepTwoQueue, stepThreeQueue, ITERATIONS - 1); }
public OneToThreePipelineQueueThroughputTest() { var temp = 0L; var operandTwo = _operandTwoInitialValue; for (long i = 0; i < _iterations; i++) { var stepOneResult = i + operandTwo--; var stepTwoResult = stepOneResult + 3; if ((stepTwoResult & 4L) == 4L) { ++temp; } } _expectedResult = temp; _stepOneQueueProcessor = new FunctionQueueProcessor(FunctionStep.One, _stepOneQueue, _stepTwoQueue, _stepThreeQueue, _iterations - 1); _stepTwoQueueProcessor = new FunctionQueueProcessor(FunctionStep.Two, _stepOneQueue, _stepTwoQueue, _stepThreeQueue, _iterations - 1); _stepThreeQueueProcessor = new FunctionQueueProcessor(FunctionStep.Three, _stepOneQueue, _stepTwoQueue, _stepThreeQueue, _iterations - 1); }