@@ -38,31 +38,29 @@ So, if you decide to use plugins that add extended class syntax or autogeneratin
38
38
39
39
# Performance
40
40
41
- markdown-it-py is the fastest _ ** CommonMark compliant** _ parser written in python!
42
-
43
41
You can view our continuous integration benchmarking analysis at: < https://executablebooks.github.io/markdown-it-py/dev/bench/ > ,
44
42
or you can run it for yourself within the repository:
45
43
46
44
``` console
47
45
$ tox -e py38-bench-packages -- --benchmark-columns mean,stddev
48
46
49
- Name (time in ms) Mean StdDev
50
- -----------------------------------------------------------------
51
- test_mistune 82.0024 (1.0) 10.7779 (1.61 )
52
- test_markdown_it_py 190.9571 (2.33 ) 6.6946 (1.0 )
53
- test_mistletoe 247.1633 (3.01 ) 16.3956 (2.45 )
54
- test_commonmark_py 482.6411 (5.89 ) 67.8219 (10.13 )
55
- test_panflute 1,043.0018 (12.72 ) 229.1034 (34.22 )
56
- test_pymarkdown 964.6831 (11.76 ) 77.2787 (11.54 )
57
- test_pymarkdown_extra 1,051.8680 (12.83 ) 32.2971 (4.82 )
58
- -----------------------------------------------------------------
47
+ Name (time in ms) Mean StdDev
48
+ ---------------------------------------------------------------
49
+ test_mistune 70.3272 (1.0) 0.7978 (1.0 )
50
+ test_mistletoe 116.0919 (1.65 ) 6.2870 (7.88 )
51
+ test_markdown_it_py 152.9022 (2.17 ) 4.2988 (5.39 )
52
+ test_commonmark_py 326.9506 (4.65 ) 15.8084 (19.81 )
53
+ test_pymarkdown 368.2712 (5.24 ) 7.5906 (9.51 )
54
+ test_pymarkdown_extra 640.4913 (9.11 ) 15.1769 (19.02 )
55
+ test_panflute 678.3547 (9.65 ) 9.4622 (11.86 )
56
+ ---------------------------------------------------------------
59
57
```
60
58
61
59
As you can see, ` markdown-it-py ` doesn't pay with speed for it's flexibility.
62
60
63
61
``` {note}
64
62
`mistune` is not CommonMark compliant, which is what allows for its
65
63
faster parsing, at the expense of issues, for example, with nested inline parsing.
66
- See [mistletoes's explanation](https://github.com/miyuchina/mistletoe# performance)
64
+ See [mistletoes's explanation](https://github.com/miyuchina/mistletoe/blob/master/ performance.md )
67
65
for further details.
68
66
```
0 commit comments