public function PerformanceTest::testReadPerformance

@group performance

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/PerformanceTest.php, line 62

Class

PerformanceTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testReadPerformance() {
  $method = $this
    ->getMethod();
  $time = microtime(true);
  for ($i = 0, $c = 150; $i < $c; $i++) {
    $reader = new AnnotationReader();
    $reader
      ->getMethodAnnotations($method);
  }
  $time = microtime(true) - $time;
  $this
    ->printResults('reader', $time, $c);
}