You are here

public function MarkdownBenchmarkAverages::__construct in Markdown 3.0.x

MarkdownBenchmarkAverages constructor.

Parameters

int $iteration_count: The amount of of loop iterations used to average the results of each MarkdownParser benchmark.

\Drupal\markdown\MarkdownBenchmark $fallback_benchmark: A fallback benchmark to use if/when there are no benchmarks available.

File

src/MarkdownBenchmarkAverages.php, line 56

Class

MarkdownBenchmarkAverages
Class MarkdownBenchmarkAverages.

Namespace

Drupal\markdown

Code

public function __construct($iteration_count = 10, MarkdownBenchmark $fallback_benchmark = NULL) {
  $this->iterationCount = $iteration_count;
  $this->fallbackBenchmark = $fallback_benchmark;
}