~fsx/md

md is a MD4C binding for Myrddin.
~fsx/public-inbox

New mailing list added

3 months ago
~fsx/md

New git repository added

7 months ago

#md

md is a MD4C binding for Myrddin.

Features:

  • Myrddin!
  • No libc!
  • HTML renderer!
  • No tests!
  • No documentation!

#Status

Alpha. The MD4C binding and HTML renderer both work.

Performance comparison with MD4C:

> hyperfine --warmup 10 'obj/myrmd spec.md' '../../md4c/build/md2html/md2html spec.md'
Benchmark #1: obj/myrmd spec.md
  Time (mean ± σ):      15.8 ms ±   0.4 ms    [User: 13.6 ms, System: 2.1 ms]
  Range (min … max):    15.3 ms …  18.0 ms    159 runs

Benchmark #2: ../../md4c/build/md2html/md2html spec.md
  Time (mean ± σ):       2.1 ms ±   0.2 ms    [User: 1.5 ms, System: 0.7 ms]
  Range (min … max):     1.7 ms …   3.2 ms    606 runs

  Warning: Command took less than 5 ms to complete. Results might be inaccurate.

Summary
  '../../md4c/build/md2html/md2html spec.md' ran
    7.62 ± 0.73 times faster than 'obj/myrmd spec.md'