Skip to content

feat: benchmarks #155

Open
Open

Description

@arashsheyda

Description

now that we have some benchmarks, would it make sense to complete them and show them in the docs maybe?

Image

Activity

  1. atinux commented on Apr 23, 2026

    @atinux
    Contributor

    I love it! though I feel the colors are off, shouldn't be the fastest green?

  2. arashsheyda commented on Apr 23, 2026

    @arashsheyda
    CollaboratorAuthor

    I love it! though I feel the colors are off, shouldn't be the fastest green?

    it's based on the framework color, e.g. remark is red, comark is yellow and markdown-exit is green. also it's bit tricky to show the fastest (I've added a note at the top, as comark has AST transformation and all it takes longer than others but the plugin algorithm of itself is faster than others for sure)

  3. arashsheyda commented on Apr 24, 2026

    @arashsheyda
    CollaboratorAuthor

    I don’t think benchmarking frameworks really makes sense here. comark converts to AST while the others mostly tokenize, so it’s expected that comark would be slower right? here are the result of the 2 benchmarks (render and parse) that Ahad wrote:

    Image

    or I'm just confused lol

  4. farnabaz commented on Apr 24, 2026

    @farnabaz
    Collaborator

    it's based on the framework color, e.g. remark is red, comark is yellow and markdown-exit is green.

    I agree with @atinux. At first glance I didn't understood which one is better and which is worst. Also I would expect the fastest one to have smaller bar width.

    I don’t think benchmarking frameworks really makes sense here.

    I agree on this, those benchmark are not actually for comparing performance. Comark by default uses markdown-exit, so we can't beat it in the performance race.
    But the benchmark gives us good insight how much it cost to have all the features that Comark promise. Also as for streaming we can see that Comark do better because of optimizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions