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?

Follow

so much for lightweight markup 

py36-rst2html5 on a year-old Celeron Braswell CPU: 1.05 seconds.

py36-rst2html5 on a 10-year-old Core 2 Quad Kentsfield CPU: 0.55 seconds.

Same OS, same version, same input file, just different hardware. ... Wat.

so much for lightweight markup 

@arielmt Funky! Maybe something to do with memory access? Or even branch prediction? That could be quite fun to get to the bottom of..

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!