From a23da7e5e9978868896dea027465b7f106619316 Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Tue, 1 Sep 2015 14:46:58 -0700 Subject: [PATCH] Add HR regression to benchmark. --- benchmark/input.md | 10 ++++++++-- benchmark/output.html | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/benchmark/input.md b/benchmark/input.md index 31f5f576..1af6a7ef 100644 --- a/benchmark/input.md +++ b/benchmark/input.md @@ -1,10 +1,16 @@ **TODO: Add more examples to cover all of the syntax.** +# Regressions + +Bad backtracking in the HR parser: + +-------------------------- | ------------------------------------------------- + +# Real-world sample + This input was taken from the test package's README to get a representative sample of real-world markdown: -## Writing Tests - Tests are specified using the top-level [`test()`][test] function, and test assertions are made using [`expect()`][expect]: diff --git a/benchmark/output.html b/benchmark/output.html index 6c49aaed..71e57715 100644 --- a/benchmark/output.html +++ b/benchmark/output.html @@ -1,7 +1,10 @@

TODO: Add more examples to cover all of the syntax.

+

Regressions

+

Bad backtracking in the HR parser:

+

-------------------------- | -------------------------------------------------

+

Real-world sample

This input was taken from the test package's README to get a representative sample of real-world markdown:

-

Writing Tests

Tests are specified using the top-level test() function, and test assertions are made using expect():

import "package:test/test.dart";