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