Skip to content

Commit

Permalink
Update README to reflect the move from 'test' to 'benchmark'
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Endler committed Dec 23, 2014
1 parent 221aefa commit 71506e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ abstract class AbstractBenchmark implements \mre\PHPench\BenchmarkInterface
}
}

class TestArrayFlip extends AbstractBenchmark
class BenchmarkArrayFlip extends AbstractBenchmark
{
public function execute() {
$test = array_flip(array_flip($this->test));
}
}

class TestArrayUnique extends AbstractBenchmark
class BenchmarkArrayUnique extends AbstractBenchmark
{
public function execute() {
$test = array_unique($this->test);
Expand All @@ -62,8 +62,8 @@ $oOutput->setTitle('Compare array_flip and array_unique');
$phpench->setOutput($oOutput);

// Add your test to the instance
$phpench->addBenchmark(new TestArrayFlip, 'array_flip');
$phpench->addBenchmark(new TestArrayUnique, 'array_unique');
$phpench->addBenchmark(new BenchmarkArrayFlip, 'array_flip');
$phpench->addBenchmark(new BenchmarkArrayUnique, 'array_unique');

// Run the benchmark and plot the results in realtime.
// With the second parameter you can specify
Expand Down

0 comments on commit 71506e0

Please sign in to comment.