class RemovePriorityQueue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/benchmark/RemovePriorityQueue.php \ZendBench\Stdlib\RemovePriorityQueue
Hierarchy
- class \ZendBench\Stdlib\RemovePriorityQueue extends \Athletic\AthleticEvent
Expanded class hierarchy of RemovePriorityQueue
File
- vendor/
zendframework/ zend-stdlib/ benchmark/ RemovePriorityQueue.php, line 16
Namespace
ZendBench\StdlibView source
class RemovePriorityQueue extends AthleticEvent {
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);
}
}
/**
* @iterations 1000
*/
public function removePriorityQueue() {
$this->priorityQueue
->remove('foo');
}
/**
* @iterations 1000
*/
public function removeFastPriorityQueue() {
$this->fastPriorityQueue
->remove('foo');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RemovePriorityQueue:: |
public | function | ||
RemovePriorityQueue:: |
public | function | @iterations 1000 | |
RemovePriorityQueue:: |
public | function | @iterations 1000 |