Skip to content

Significantly slower than marked, but does more #2

@peterbe

Description

@peterbe

I used to use marked but now exploring marktex.
However, before I swapped I put some logging around how long it takes to render. E.g.

  let t0=performance.now()
  text = marktex(text)
  let t1=performance.now()
  console.warn('marktex', t1-t0);

I did this for both rendering engines. Ran lots and lots of markdown through them and the collected the times and analyzed each's average:

MARKED 0.146812227074
MARKTEX 1.331

I know I need the gfm features but I'm not entirely sure what options are the ones that slow down the most. Is it just that marktex does more?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions