public function RemovePriorityQueue::classSetUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-stdlib/benchmark/RemovePriorityQueue.php \ZendBench\Stdlib\RemovePriorityQueue::classSetUp()
File
- vendor/
zendframework/ zend-stdlib/ benchmark/ RemovePriorityQueue.php, line 18
Class
Namespace
ZendBench\StdlibCode
public function classSetUp() {
$this->fastPriorityQueue = new FastPriorityQueue();
$this->priorityQueue = new PriorityQueue();
for ($i = 0; $i < 1000; $i += 1) {
$priority = rand(1, 100);
$this->fastPriorityQueue
->insert('foo', $priority);
$this->priorityQueue
->insert('foo', $priority);
}
}