Skip to content

Commit

Permalink
Update benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 28, 2018
1 parent 5ee6e1c commit fe97ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/AbstractBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ abstract class AbstractBench
*/
public function getData()
{
return \range(1, 1000);
return \range(1, 100);
}
}
6 changes: 3 additions & 3 deletions benchmarks/DrupolPhpTreeBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public function initObject()
* @Iterations(5)
* @Warmup(10)
*/
public function benchHash()
public function benchTreeAdd()
{
$this->tree = new ValueNode();
$this->tree = new ValueNode('root', 2);

foreach ($this->getData() as $value) {
$this->tree->add(new ValueNode($value));
$this->tree->add(new ValueNode($value, 2));
}
}
}

0 comments on commit fe97ac7

Please sign in to comment.