Skip to content

Benchmarks and hermit-bench interface #708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 21, 2025
Merged

Conversation

CarlWachter
Copy link
Contributor

This PR adds the benchmarks which the kernel will call for its Continuous Benchmarking. It also adds the bench.json file, which specifies how these benchmarks are to be operated.

@jounathaen
Copy link
Member

jounathaen commented May 20, 2025

I wonder if the bench.json belongs into hermit-rs or rather the kernel directly. The later would allow for different benchmark sets for the kernel and hermit-rs (but I'm not sure if that is actually relevant), and maybe splitting the separation of the benchmarks as a collection and the execution is a good idea?

@CarlWachter
Copy link
Contributor Author

I wonder if the bench.json belongs into hermit-rs or rather the kernel directly.

My rational was, that the commands to execute the benchmarks are dependent on hermit-rs and should therefore be kept together. I think it would be a little odd to have the bench.json be the only benchmarking-related file in the kernel. At that point it may be better to just to move all the benchmarking files to the kernel.

But I don't feel super strongly about it either way.

@jounathaen
Copy link
Member

Super nice! Thank you 🥳

Merged via the queue into hermit-os:main with commit fd6454d May 21, 2025
9 checks passed

[target.'cfg(target_os = "hermit")'.dependencies]
hermit = { path = "../../hermit", default-features = false }

[features]
default = ["hermit/acpi", "hermit/pci", "hermit/smp", "hermit/tcp"]
default = ["hermit/acpi", "hermit/pci", "hermit/smp", "hermit/tcp", "hermit/udp", "hermit/pci-ids"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need full PCI IDs?

@@ -0,0 +1,40 @@
#![allow(unused_imports)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need these unused imports in so many files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants