We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ee6e1c commit fe97ac7Copy full SHA for fe97ac7
benchmarks/AbstractBench.php
@@ -11,6 +11,6 @@ abstract class AbstractBench
11
*/
12
public function getData()
13
{
14
- return \range(1, 1000);
+ return \range(1, 100);
15
}
16
benchmarks/DrupolPhpTreeBench.php
@@ -30,12 +30,12 @@ public function initObject()
30
* @Iterations(5)
31
* @Warmup(10)
32
33
- public function benchHash()
+ public function benchTreeAdd()
34
35
- $this->tree = new ValueNode();
+ $this->tree = new ValueNode('root', 2);
36
37
foreach ($this->getData() as $value) {
38
- $this->tree->add(new ValueNode($value));
+ $this->tree->add(new ValueNode($value, 2));
39
40
41
0 commit comments