0.8.4 vs 2.0.0a4 performance
See original GitHub issueCongrats @lepture for this project! (I’m doing a benchmark of many Markdown to HTML libraries, and mistune
seems to be the best!)
I used timeit
with the same Markdown document, and:
- version 0.8.4:
mistune.markdown(s)
took 4ms on average - version 2.0.0a4:
mistune.markdown(s)
took 13ms on average (for the same document)
What could be the reason of 2.0.0a4 be 3x slower than version 0.8.4?
Can I use 0.8.4 for my current project, is it still stable?
s = 'my_sample_document'
import timeit
print(timeit.timeit("markdown(s)", setup="from mistune import markdown;from __main__ import s", number=100)/100)
PS: I also found this article, it’s linked to this topic: https://getnikola.com/blog/markdown-can-affect-performance.html
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
mistune 0.8.4
Tested in Python 2.7, Python 3.5+ and PyPy. Very Fast. It is the fastest in all pure Python markdown parsers. More Features. Table,...
Read more >pyatv/CHANGES.md at master
A client library for Apple TV and AirPlay devices. ... This release just lowers the required version of cryptography to 36.0.2 or higher....
Read more >Table years of Experience General Secretariep ...
Supervisors Desiring Performance ... From your experience as'a superv.isor'of one or more General ... Number of combined Groups 1 and 2 supervisors.
Read more >PERCEPTUAL AUGMENTATION TECHNIQUES, PART TWO
For Release 2000/08/10 : CIA-R 8000100410001-2 *j L. %0 9% La I Final Report ... However, the association and com- pilation of this...
Read more >AIR FORCE INSTITUTE OF TECHNOLOGY
Diffuser performance with and without vortex generator jets was measured for an ... B-2, McDonnell Douglas F-18, and the Lockheed F-22 military aircraft....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@viniciusban Thanks for these suggestions. I’ll probably try these later; for now ~25ms with mistune 0.8.4 is fine, I think I’ll just keep using this version and it’s perfect.
Here is our benchmark for v3 on my Macbook. Please check
v3
branch code.