Python Markdown: run times on various systems

Contents

For this test I used my Olinia 2016 notebook, which is perhaps the largest and most complex Markdown document I have. I also used the more up-to-date version of Python Markdown running on Python 2.

Baseline: My Dell laptop: 24.5 seconds

[brian@sparrow r]$ ls -l Notebook.c.2016.text 
-rw-rw-rw- 1 brian brian 1653357 Jan 11  2017 Notebook.c.2016.text

[brian@sparrow r]$ time notes2html -p2 /r/Notebook.c.2016.text >/r/Emerge_Notebook.2016.html
Preprocessors: NormalizeWhitespace, GenTOCRemove, Meta, AUCHeader, FencedBlock,
  HtmlBlock, Footnote, Abbr, Reference
Block processors: SpanTable, Admonition, Empty, ListIndent, DefListIndent,
  AUCHeader, Code, Table, HashHeader, SetextHeader, HR, SaneOList, SaneUList,
  DefList, BlockQuote, PercentComments, Paragraph
  Processing 5530 blocks
Tree processors: Footnote, Autoxref, Hilite, H1H2uplinks, HtmlHead, Inline,
  FootnotePost, Prettify, AttrList, Toc, TaskList, Inline
Post-processors: PercentComments, RawHtml, H1H2uplinks, TOCFixer, Footnote,
  AndSubstitute, HtmlHead, Unescape

real    0m24.509s
user    0m24.118s
sys     0m0.191s

[brian@sparrow r]$ ls -l /r/Emerge_Notebook.2016.html
-rw-rw-r-- 1 brian brian 2948097 Nov 16 01:29 /r/Emerge_Notebook.2016.html

Raspberry Pi 1: 12 minutes, 19 seconds

pi@raspberrypi:~$ time notes2html -p2o /dev/null /r/Notebook.c.2016.text 
Preprocessors: NormalizeWhitespace, GenTOCRemove, Meta, AUCHeader, FencedBlock,
  HtmlBlock, Footnote, Abbr, Reference
Block processors: SpanTable, Admonition, Empty, ListIndent, DefListIndent,
  AUCHeader, Code, Table, HashHeader, SetextHeader, HR, SaneOList, SaneUList,
  DefList, BlockQuote, PercentComments, Paragraph
  Processing 5530 blocks
Tree processors: Footnote, Autoxref, Hilite, H1H2uplinks, HtmlHead, Inline,
  FootnotePost, Prettify, AttrList, Toc, TaskList, Inline
Post-processors: PercentComments, RawHtml, H1H2uplinks, TOCFixer, Footnote,
  AndSubstitute, HtmlHead, Unescape

real    12m18.866s
user    11m47.060s
sys     0m5.210s

Raspberry Pi 1: 3 minutes, 13 seconds

pi@rpi3:~ $ time notes2html -po/dev/null /r/Notebook.c.2016.text
Preprocessors: NormalizeWhitespace, GenTOCRemove, Meta, AUCHeader, FencedBlock,
  HtmlBlock, Footnote, Abbr, Reference
Block processors: SpanTable, Admonition, Empty, ListIndent, DefListIndent,
  AUCHeader, Code, Table, HashHeader, SetextHeader, HR, SaneOList, SaneUList,
  DefList, BlockQuote, PercentComments, Paragraph
  Processing 5530 blocks
Tree processors: Footnote, Autoxref, Hilite, H1H2uplinks, HtmlHead, Inline,
  FootnotePost, Prettify, AttrList, Toc, TaskList, Inline
Post-processors: PercentComments, RawHtml, H1H2uplinks, TOCFixer, Footnote,
  AndSubstitute, HtmlHead, Unescape

real    3m13.371s
user    3m11.910s
sys     0m1.060s

On this task, the Pi 3 is 3.8 times faster than the Pi 1.

Raven: 11.7 seconds

brian@proxmox:~$ time notes2html -po/dev/null /r/Notebook.c.2016.text 
Preprocessors: NormalizeWhitespace, GenTOCRemove, Meta, AUCHeader, FencedBlock,
  HtmlBlock, Footnote, Abbr, Reference
Block processors: SpanTable, Admonition, Empty, ListIndent, DefListIndent,
  AUCHeader, Code, Table, HashHeader, SetextHeader, HR, SaneOList, SaneUList,
  DefList, BlockQuote, PercentComments, Paragraph
  Processing 5530 blocks
Tree processors: Footnote, Autoxref, Hilite, FullHtml, H1H2uplinks Inline,
  FootnotePost, Prettify, AttrList, Toc, TaskList, Inline
Post-processors: PercentComments, RawHtml, H1H2uplinks, TOCFixer, Footnote,
  AndSubstitute, FullHtml, Unescape

real    0m11.689s
user    0m11.617s
sys     0m0.072s