Package org.simplesim.examples.testing
Class LargeQueueTest
java.lang.Object
org.simplesim.examples.testing.LargeQueueTest
Performance test and comparison of various implementations of
 
EventQueue
 Enqueue and dequeue functionality is used most often in simulation applications. So, this test focuses on a large number of events with repeated queue usage.
- 
Constructor SummaryConstructorsConstructorDescriptionLargeQueueTest(org.simplesim.examples.testing.LargeQueueTest.QueueType queueType) 
- 
Method SummaryModifier and TypeMethodDescriptionlongTest for dequeuing all current eventsstatic voidlongpopulateEventQueue(long initTime) Initializes the event queue withcountTotalevents
- 
Constructor Details- 
LargeQueueTestpublic LargeQueueTest(org.simplesim.examples.testing.LargeQueueTest.QueueType queueType) 
 
- 
- 
Method Details- 
populateEventQueuepublic long populateEventQueue(long initTime) Initializes the event queue withcountTotalevents
- 
doDequeueAllNextEventspublic long doDequeueAllNextEvents()Test for dequeuing all current eventsDequeues the all current events with the same time stamp, using dequeueAll()functionality. The event queue will be empty after this method.
- 
main- Parameters:
- args-
 
 
-