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 Summary
ConstructorsConstructorDescriptionLargeQueueTest(org.simplesim.examples.testing.LargeQueueTest.QueueType queueType) -
Method Summary
Modifier and TypeMethodDescriptionlongTest for dequeuing all current eventsstatic voidlongpopulateEventQueue(long initTime) Initializes the event queue withcountTotalevents
-
Constructor Details
-
LargeQueueTest
public LargeQueueTest(org.simplesim.examples.testing.LargeQueueTest.QueueType queueType)
-
-
Method Details
-
populateEventQueue
public long populateEventQueue(long initTime) Initializes the event queue withcountTotalevents -
doDequeueAllNextEvents
public 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-
-