Skip to content
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

Add support for -benchmem format #5

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

bryanhuhta
Copy link
Contributor

I use this tool on occasion for moving benchmark results into Google Sheets and recently had trouble getting it to work for benchmarks which had the -benchmem flag set. This PR introduces support for the -benchmem output.

If the -mem flag is passed to bench2csv, then two additional columns will be added to the output csv: bytes_per_op and allocs_per_op.

https://regex101.com/r/AadLWF/latest illustrates a test of the new regex.

bench2csv.go Outdated Show resolved Hide resolved
@markuswustenberg
Copy link
Member

Hi @bryanhuhta . Thank you for your contribution! That is indeed very useful to have. I've made a few small tweaks and will merge this now. 😊

@markuswustenberg markuswustenberg merged commit 1e65af0 into maragudk:main Nov 17, 2023
2 checks passed
@bryanhuhta bryanhuhta deleted the benchmem branch December 5, 2023 03:55
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.

2 participants