Repository navigation
Add Iai-Callgrind adapter - #319
Merged
Merged
Conversation
epompeii
approved these changes
Feb 8, 2024
epompeii
left a comment
Member
There was a problem hiding this comment.
Fantastic work, @JonasWanke ! Thank you for this great PR!
I've been a bit worried about Iai being abandonware, so it's great to learn that iai-callgrind exits 😃
I've changed the target branch to devel. I should have v0.4.2 out in the next day or two with your changes included! 🚀
| } | ||
|
|
||
| #[test] | ||
| fn test_adapter_rust_aia() { |
| 1. Erstellen Sie eine GitHub Actions `workflow` Datei. (z.B.: `.github/workflows/pr_benchmarks.yml`) | ||
| 2. Führen Sie bei `pull_request` Ereignissen aus, wenn und nur wenn der Pull Request aus dem gleichen Repository stammt. Für die Verarbeitung von Fork PRs siehe unten [Pull Requests von Forks](#pull-requests-from-forks). | ||
| 3. Legen Sie [die Berechtigungen für das `GITHUB_TOKEN`](https://docs.github.com/de/actions/using-jobs/assigning-permissions-to-jobs#setting-the-github_token-permissions-for-a-specific-job) auf `write` für `pull-requests`. Abhängig von Ihren GitHub-Einstellungen ist dies möglicherweise nicht erforderlich. Aber für alle Organisationen und persönlichen Repositories, [die nach dem 02. Februar 2023 erstellt wurden](https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/), ist dies das Standardverhalten. Siehe [die GitHub-Dokumentation](https://docs.github.com/de/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token) für eine vollständige Übersicht. | ||
| 3. [Wählen Sie den Branch](http://localhost:3000/de/docs/explanation/branch-selection/) aus, den Sie verwenden möchten: |
This was referenced Jul 17, 2024
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We're changing our continuous benchmarking in GitHub Actions (for our programming language Candy, implemented in Rust) to be based on Valgrind and discovered both Bencher and Iai. However, Iai isn't maintained anymore (the last commit was three years ago), so we're using Iai-Callgrind, which has a slightly different output format. Hence, I added an adapter supporting this format.
Iai-Callgrind exposes mostly the same measures as Iai:
Therefore, I created a separate enum
IaiCallgrindMeasurebut reused the name/slug/unit strings where possible.In the documentation, I only updated the English pages and not the “Benchmarking in Rust” section under
/learn.Also, I discovered a broken link in the documentation (pointing to localhost) which is now fixed.