You are here

class InsertPriorityQueue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/benchmark/InsertPriorityQueue.php \ZendBench\Stdlib\InsertPriorityQueue

Hierarchy

Expanded class hierarchy of InsertPriorityQueue

File

vendor/zendframework/zend-stdlib/benchmark/InsertPriorityQueue.php, line 17

Namespace

ZendBench\Stdlib
View source
class InsertPriorityQueue extends AthleticEvent {
  public function classSetUp() {
    $this->splPriorityQueue = new SplPriorityQueue();
    $this->fastPriorityQueue = new FastPriorityQueue();
    $this->priorityQueue = new PriorityQueue();
  }

  /**
   * @iterations 5000
   */
  public function insertSplPriorityQueue() {
    $this->splPriorityQueue
      ->insert('foo', rand(1, 100));
  }

  /**
   * @iterations 5000
   */
  public function insertPriorityQueue() {
    $this->priorityQueue
      ->insert('foo', rand(1, 100));
  }

  /**
   * @iterations 5000
   */
  public function insertFastPriorityQueue() {
    $this->fastPriorityQueue
      ->insert('foo', rand(1, 100));
  }

}

Members