class InsertPriorityQueue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-stdlib/benchmark/InsertPriorityQueue.php \ZendBench\Stdlib\InsertPriorityQueue
Hierarchy
- class \ZendBench\Stdlib\InsertPriorityQueue extends \Athletic\AthleticEvent
Expanded class hierarchy of InsertPriorityQueue
File
- vendor/
zendframework/ zend-stdlib/ benchmark/ InsertPriorityQueue.php, line 17
Namespace
ZendBench\StdlibView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InsertPriorityQueue:: |
public | function | ||
InsertPriorityQueue:: |
public | function | @iterations 5000 | |
InsertPriorityQueue:: |
public | function | @iterations 5000 | |
InsertPriorityQueue:: |
public | function | @iterations 5000 |