Skip to content

Performance Benchmarking guidance #1495

Open

Description

@B3rn475

Would it be possible to add a section to CONTRIBUTING.md with best practices w.r.t. benchmarking/performance?

I noticed that in some issues the discussions tend to be "theoretical", which is great, but sometimes having real world numbers could be helpful when performing micro-optimizations.

E.g. sometimes storing the params "default" outside of a function helps reducing memory utilization and avoids recurrent cost for common APIs.
But it is not super obvious if contributions in this spirit are welcome and what is the bar for such changes.

Any suggestions/guidance would be really appreciated.

Activity

  1. z3dev commented on Nov 2, 2026

    @z3dev
    Member

    Hi @B3rn475

    The performance suite can be found here. You're welcome to try it out and make changes as well.

    https://github.com/jscad-community/jscad-performance

    I run the suite on all releases to compare the performance between releases.

  2. z3dev commented on Nov 2, 2026

    @z3dev
    Member

    Guidance...

    • Make all performance changes to V3. V2 is basically locked down now. And V3 already has a lot of improvements.
    • Try to determine the performance improvement. This may be difficult but it would be nice to know.
    • ALL test suites must pass, across ALL libraries.
  3. z3dev commented on Nov 2, 2026

    @z3dev
    Member

    FYI, there's a performance improvement the latest V3 fixes PR. See the changes in extrudeHelical.js

    #1493

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions