Performance of CommonMark reference implementations

Take a look at this post too: Why is MD4C so fast? [C] - #12 by mity

It was a one-time hack, but I can imagine it might be expanded and turned into a more reusable form. The advantage of it is that it does actually multiple mini-benchmarks, each trying to address some particular part of the parser implementation. So this approach can also give a hint where your implementation can be behind.

1 Like