public function MarkdownParserBenchmarkInterface::benchmarkAverages in Markdown 3.0.x
Averages a certain number of benchmarks of the MarkdownParser.
Parameters
string $markdown: The markdown string to benchmark.
string $format: A specific filter format identifier to use. If provided, the "rendered" benchmark will be that of check_markup(). If not, it will be that of the MarkdownParser's render() method.
int $iterations: The amount of of loop iterations used to average the results of each MarkdownParser benchmark.
Return value
\Drupal\markdown\MarkdownBenchmarkAverages A MarkdownBenchmarkAverages object.
File
- src/
Plugin/ Markdown/ MarkdownParserBenchmarkInterface.php, line 44
Class
- MarkdownParserBenchmarkInterface
- Interface MarkdownInterface.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function benchmarkAverages($markdown, $format = NULL, $iterations = 10);