rustc-perf icon indicating copy to clipboard operation
rustc-perf copied to clipboard

runtime benchmarks

Open nikomatsakis opened this issue 9 years ago • 3 comments

We're using this issue to track work on making benchmark suite for tracking efficiency of generated code (as opposed to efficiency of compilation time itself).

TODO: It might be good to copy over the list of items from description on https://github.com/rust-lang/rust/issues/31265 . Or figure out some other way to encode them/curate them as a todo list for investigation points.

(original description follows)


It'd be great if there were an option to add a make bench target to makefiles that would run runtime benchmarks. We could scrape the output from cargo bench, for example, and include those as data points.

I could then merge the entries from https://github.com/nikomatsakis/rust-runtime-benchmarks and use those.

nikomatsakis avatar Aug 23 '16 18:08 nikomatsakis

Functionality wise, most of the code here is semi-compatible with another "time" field, though updates would be needed. However, I think the primary work needs to be done in the benchmarks repository more so than here. Once that is done it shouldn't be difficult to work with the data, though displaying it will be somewhat difficult, especially until we deprecate and remove the JS backend from consideration (I'd prefer to avoid maintaining two separate, incompatible versions of frontend code).

Mark-Simulacrum avatar Aug 23 '16 19:08 Mark-Simulacrum

@Mark-Simulacrum ok; I can investigate the data gathering if you would be willing (at some later point) to tackle the data processing :)

nikomatsakis avatar Aug 23 '16 19:08 nikomatsakis

Sounds good to me. I think the best option here would be to add a runtimes field to the top-level JSON object in the processed/ directory. I'm uncertain specifically what data we will be gathering, so I can't speak much as to the layout within the field.

Mark-Simulacrum avatar Aug 23 '16 19:08 Mark-Simulacrum

almost 7 years to the day, great work @Kobzol 🎉

lqd avatar Jul 27 '23 12:07 lqd