Skip to content

Commit

Permalink
More precise benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Sep 2, 2015
1 parent 11b524a commit 2eb8f3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Benchmark/Benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function classSetUp()

/**
* @baseline
* @iterations 10000
* @iterations 100000
*/
public function native_invoke_closure()
{
Expand All @@ -32,15 +32,15 @@ public function native_invoke_closure()
}

/**
* @iterations 10000
* @iterations 100000
*/
public function native_invoke_method()
{
call_user_func(array($this->noop, 'noop'));
}

/**
* @iterations 10000
* @iterations 100000
*/
public function invoke_closure()
{
Expand All @@ -50,15 +50,15 @@ public function invoke_closure()
}

/**
* @iterations 10000
* @iterations 100000
*/
public function invoke_method()
{
$this->invoker->call(array($this->noop, 'noop'));
}

/**
* @iterations 10000
* @iterations 100000
*/
public function invoke_with_named_parameters()
{
Expand Down

0 comments on commit 2eb8f3a

Please sign in to comment.