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 Benchmark.to_list() and to_json() to improve record IO #162

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

nicholasjng
Copy link
Collaborator

No description provided.

It is useful to be able to export a record to both a struct (JSON, YAML)
and to a list of results (tabular formats like CSV, Parquet, databases).

The previous way of choosing either mode via a string literal was not
great, so now, we restructure the API to `BenchmarkRecord.to_{json,list}`
for either export, and make BenchmarkRecord.expand() capable of dealing
with either.
@nicholasjng nicholasjng self-assigned this Nov 13, 2024
@nicholasjng nicholasjng merged commit f5792fa into main Nov 13, 2024
14 checks passed
@nicholasjng nicholasjng deleted the support-dual-layout branch November 13, 2024 14:06
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.

1 participant