Skip to content

Add compilation performance regression tests #57

Open

Description

@baszalmstra
  • claim this issue (assign yourself or comment below)
  • setup repository on your local machine and make sure all tests pass (cargo test)
  • read our contributing guidelines
  • add a framework (I've been looking at criterion but you're free to use whatever) to benchmark compilation times and add regression tests
  • start a Pull Request. Set description to closes #57. If this is your first PR, welcome 🎉 😄

This could be combined with #58

Activity

  1. baszalmstra commented on Mar 29, 2020

    @baszalmstra
    CollaboratorAuthor

    Some initial runtime performance benchmarks have been added here: #104

  2. added
    pri: high
    type: test
    exp: low
    on May 22, 2020
  3. added this to the Mun v0.3.0 milestone on May 23, 2020
  4. ChrisPWill commented on Jun 23, 2020

    @ChrisPWill

    Howdy, I'd like to have a go at tackling this. It may take a little time since I'll need to learn a little about the libraries in question, and don't have a huge amount of time at the moment, but it doesn't seem super difficult.

    Do we have a definition of done for this issue? Is it a case of setting up the framework and adding "some" regression tests?

  5. Wodann commented on Jun 23, 2020

    @Wodann
    Collaborator

    Hi, thank you for helping out! 🙂

    The most uncertain part is the Continuous Integration. As we don't have dedicated hardware, our regression tests will suffer from variable workloads. That will probably result in a lot of false positives/negatives.

    Until we find enough funding or a sponsor, we will probably need to manually run these regression tests periodically (and consequently pinpoint regressions in history) and ask suspect PRs to do the same. So no need to worry about that aspect.

    W.r.t. specific tests, you could:

    • reuse Mun code in existing test cases (there are a lot of them, so that should provide some volume)
    • reuse Mun code in the Rust examples

    Metrics that we'll want to benchmark are:

    • first-time compilation
    • incremental compilation
    • edit-to-hot-reload latency (this benchmark will need to be in the mun_runtime crate)

    Overall, that might be quite some work, so feel free to only implement a subset of these in your first PR.

  6. ChrisPWill commented on Jun 23, 2020

    @ChrisPWill

    Great, thanks for the clarification and tips! That's a shame re: CI, but I guess that can be fixed down the track. It all sounds like good fun and I'm excited to be involved, will try and open a WIP PR some time soon to keep the discussion going.

  7. Wodann commented on Jul 25, 2020

    @Wodann
    Collaborator

    Hi @ChrisPWill. How has your work on this been going? Do you need any help?

  8. modified the milestones: Mun v0.3.0, Mun v0.5.0 on Aug 28, 2020
  9. Wodann commented on Oct 4, 2020

    @Wodann
    Collaborator

    Hi @ChrisPWill. As we haven't heard from you in a while, I'm removing you as the assignee for this issue, such that other people can also try their luck.

    We hope to see you back in the Mun community soon! When you do pick this issue back up, please post a message here 🙂

  10. removed this from the Mun v0.5.0 milestone on Oct 31, 2023
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

    exp: lowgood first issuepri: hightype: test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions