public PingPongChannelLatencyTest() { _pingChannel = Channel.CreateBounded <PerfEvent>(new BoundedChannelOptions(_bufferSize) { FullMode = BoundedChannelFullMode.Wait, SingleReader = true, SingleWriter = true, }); _pongChannel = Channel.CreateBounded <PerfEvent>(new BoundedChannelOptions(_bufferSize) { FullMode = BoundedChannelFullMode.Wait, SingleReader = true, SingleWriter = true, }); _pinger = new QueuePinger(_pingChannel, _pongChannel, _iterations, _pauseDurationInNano); _ponger = new QueuePonger(_pingChannel, _pongChannel); }
public PingPingQueueLatencyTest() { _pinger = new QueuePinger(_pingQueue, _pongQueue, _iterations, _pauseDurationInNano); _ponger = new QueuePonger(_pingQueue, _pongQueue); }