Skip to content

Benchmark: option to output perf as csv #781

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

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

milseman
Copy link
Member

No description provided.

@milseman milseman requested a review from natecook1000 October 15, 2024 19:31
@milseman
Copy link
Member Author

@swift-ci please test

@milseman
Copy link
Member Author

@swift-ci please test macOS platform

1 similar comment
@milseman
Copy link
Member Author

@swift-ci please test macOS platform

Copy link
Member

@natecook1000 natecook1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One question about escaping the name field, but we could also just handle that when it comes up.

$0.name < $1.name
}
var contents = """
name,\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like we'll eventually get bitten by name having CSV-incompatible characters… is there a simple escaping step we could do here to forfend against that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can escape the entire field in double double quotes, e.g. ""field 1""

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to not do so now, as I think it will put the quote in the field when opened in a spreadsheet. We can add that later or just have a policy that names not include commas.

@milseman milseman merged commit 533b3a1 into swiftlang:main Oct 18, 2024
3 checks passed
@milseman milseman deleted the save_csv branch October 18, 2024 15:49
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