Skip to content

Conversation

@Osteoporosis
Copy link
Contributor

I want to visualize the results of multiple benchmarks in a graph. However, the subplot layout, along with many magic constants, is almost hard-coded. And as mentioned in the comments of run.sh, it is not possible to add a sufficient number of bar graphs.
I replaced the graph library from matplotlib to plotly and made modifications, to reduce magic constants and to make it easier to expand. I also introduced type hints in the Python code.

The attached image is an example when including all bar graphs. But I don't have a native Linux box, so the benchmark result graph could not be included in the PR. It was executed on WSL.
plot

The first commit only contains format change without altering any code, you can skip it and read the second one.(3b0732b)

@Osteoporosis Osteoporosis force-pushed the make-benchmark-graph-extensible branch from bcd07e9 to 68aa4f1 Compare February 1, 2024 16:14
@Osteoporosis
Copy link
Contributor Author

It looks like test fairness2 (in crossbeam-channel/tests/select_macro.rs) fails at random. Because this PR doesn't touch anything related.
@taiki-e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant