public ThreeToOneQueueThroughputTest() { _queueProcessor = new ValueAdditionQueueEventProcessor(_blockingQueue, ((_iterations / _publisherCount) * _publisherCount) - 1L); for (var i = 0; i < _publisherCount; i++) { _valueQueueProducers[i] = new ValueQueueProducer(_signal, _blockingQueue, _iterations / _publisherCount); } }
public Sequencer3P1CBlockingCollectionPerfTest() : base(1 * Million) { _queueEventProcessor = new ValueAdditionQueueEventProcessor(_blockingQueue, Iterations); _testStartBarrier = new Barrier(NumProducers + 1); _valueQueueProducers = new ValueQueueProducer[NumProducers]; for (int i = 0; i < NumProducers; i++) { _valueQueueProducers[i] = new ValueQueueProducer(_testStartBarrier, _blockingQueue, Iterations); } }