Skip to content

Add Mun performance regression tests #58

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 Mun code and add regression tests
  • start a Pull Request. Set description to closes #58. If this is your first PR, welcome 🎉 😄

This could be combined with #57

Activity

  1. baszalmstra commented on Mar 29, 2020

    @baszalmstra
    CollaboratorAuthor

    Some initial 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. Wodann commented on May 26, 2020

    @Wodann
    Collaborator

    For completeness, benchmark results were included in the march blog

  5. modified the milestones: Mun v0.3.0, Mun v0.5.0 on Aug 28, 2020
  6. bytewife commented on Dec 21, 2022

    @bytewife

    Is this issue still valid? If so, I'll take this one on!

  7. baszalmstra commented on Dec 22, 2022

    @baszalmstra
    CollaboratorAuthor

    @ivyraine Fantastic! Let me know if you need help!

  8. bytewife commented on Dec 28, 2022

    @bytewife

    @baszalmstra Happy holidays! I'll take you up on some questions- please bear with me as I get up to speed on the project 😅 Firstly, what are the most important parts of Mun to test for performance regressions? Should we begin with the benchmarks linked here? Secondly, how would you recommend setting up the tests? I was thinking it would be useful to run the tests in CI, but criterion recommends against it.

  9. bytewife commented on Dec 28, 2022

    @bytewife

    Ah, I missed the similar issue here, which has some details on CI! To be clear, this issue is about testing the performance of the language runtime, and #57 is about compilation performance?

    It appears that iai can get around issues regarding having inconsistent hardware in cloud CI. However it seems like the project isn't maintained. What are your thoughts on using it?

    Note: rustc uses rustc-perf, which sadly doesn't provide a crate. It provides a mix of wall-time and hardware-independent metrics like instruction count.

  10. bytewife commented on Dec 29, 2022

    @bytewife

    After some thought, I feel that the best course of action is to create some tests (similar to the ones in benchmark.rs) using iai. In another issue, we can create a CI regression testing interface in the same vein as rustc-perf. How does this sound?

  11. baszalmstra commented on Jan 1, 2023

    @baszalmstra
    CollaboratorAuthor

    @ivyraine that sounds good! We can also run the benchmarks on dedicated hardware from time to time to get consistent results. Alternatively, we could also invest in dedicated hardware.

    This issue is about measuring the performance of compiled Mun code indeed. The biggest thing we want to achieve here is to spot regressions more easily.

  12. 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