-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Description
| Previous ID | SR-9713 |
| Radar | None |
| Original Reporter | BalestraPatrick (JIRA User) |
| Type | Improvement |
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Standard Library |
| Labels | Improvement |
| Assignee | None |
| Priority | Medium |
md5: 4c7513e1924c08dd259349acbc66153e
Issue Description:
After working on SR-8908 as part of SR-8905, I think the process of adding a new benchmark could be improved and automated. Right now, the [documentation](https://github.com/apple/swift/tree/master/benchmark#adding-new-benchmarks) mentions 3 steps in order to create and register a new single-source benchmark with the driver:
-
Add a new Swift file (
YourTestNameHere.swift), built according to the template below, to the {{single-source}}directory. -
Add the filename of the new Swift file to CMakeLists.txt
-
Edit
main.swift. Import and register your new Swift module.
I'd like to see this process automated with a simple script that takes the name of a new benchmark and correctly creates, sets up the files and inserts the benchmark in the correct and sorted position for example.
Would this makes sense? I have a PR ready to be opened with a WIP implementation.
cc: @milseman @palimondo