so much for lightweight markup 

Rendering the same 6-paragraph, 65-line source markup file (reStructuredText or pandoc's Markdown flavor) into a 154-line HTML 5 target file:

py36-rst2html5: 1.05 seconds

py36-docutils: 0.65 seconds

hs-pandoc: 2.50 seconds

Rendering the same source file content through Jamal, "Just Another Macro Language," a perl script from 1997 & last updated 2010:

jamal: 0.05 seconds

These look tiny now, but what happens when I go over 100 pages then tweak the template?

@arielmt i'd kinda expect hs-pandoc at least to be much faster than jamal when you go over 100 pages? once you get past startup overhead, haskell should be quicker

Follow

@00dani I thought of that, but I was thinking it was a general caching issue, not invocation overhead. I had timed consecutive runs of pandoc, & the first run was over 3X slower than subsequent runs (7.96 s vs consistent 2.44-2.51 s just now in a repeat test). The fastest number is what I used.

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!