You are here

public function MarkdownParserBenchmarkInterface::benchmark in Markdown 3.0.x

Benchmarks 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.

Return value

\Drupal\markdown\MarkdownBenchmark[] An array containing three benchmarks to be used with list():

  • parsing
  • rendering
  • total

File

src/Plugin/Markdown/MarkdownParserBenchmarkInterface.php, line 26

Class

MarkdownParserBenchmarkInterface
Interface MarkdownInterface.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function benchmark($markdown, $format = NULL);