Class LargeQueueTest

java.lang.Object
org.simplesim.examples.testing.LargeQueueTest

public class LargeQueueTest extends Object
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 Details

    • LargeQueueTest

      public LargeQueueTest(org.simplesim.examples.testing.LargeQueueTest.QueueType queueType)
  • Method Details

    • populateEventQueue

      public long populateEventQueue(long initTime)
      Initializes the event queue with countTotal events
    • doDequeueAllNextEvents

      public long doDequeueAllNextEvents()
      Test for dequeuing all current events

      Dequeues the all current events with the same time stamp, using dequeueAll() functionality. The event queue will be empty after this method.

    • main

      public static void main(String[] args)
      Parameters:
      args -