add a benchmark for `typenum`
lcnr opened this issue · comments
typenum
is a quite widely used crate whose performance is strongly impacted by -Znext-solver=coherence
and type system changes in general. It would be useful to add it to the suite.
Does the crate itself contain the interesting code (i.e. does it "use itself" enough), or would you like to see some other crate that leverages typenum
?
the crate itself has been good enough in my experience
Okay, I wouldn't mind adding it even as a primary benchmark, since it's probably going to be a dependency of several real world crates. And in light of stabilizing parts of the new solver, it makes sense to add stress tests for trait solving.
@nnethercote What do you think?
Sounds fine. Instructions for adding a new benchmark are here.
I will add it. I also noticed it's a top 100 crates.io crate with over 300k daily downloads, so it's even more popular than I thought.
Hmm, it has a rather complicated build script that I will have to pre-run and commit its outputs, since we don't support benchmarking crates with build scripts. The output of the build script depends on enabled features though. @lcnr https://github.com/paholg/typenum/blob/main/Cargo.toml#L27 any specific features that you want to have enabled for it?
maybe just i128
and const-generics
? 🤔 given that these are the default features for the playground/docs?