public void EnqeueDequeueQueueSpeedTest() { for (int i = 0; i < _queueSize; i++) { _fixedQueueStruct.Enqueue(new MessageStruct(i, _longValue)); } for (int i = 0; i < _queueSize; i++) { MessageStruct msg = _fixedQueueStruct.Dequeue(); } }
public void EnqeueDequeueQueueSpeedTest() { for (int i = 0; i < _queueSize; i++) { _fixedQueue.Enqueue(new Message { Value = i }); } for (int i = 0; i < _queueSize; i++) { Message msg = _fixedQueue.Dequeue(); } }