File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,17 @@ Adding New Benchmarks
132132
133133The harness generator supports both single and multiple file tests.
134134
135- To add a new single file test:
135+ To add a new single file test, execute the following script with the new of the benchmark :
136136
137+ ```
138+ swift-source$ ./swift/benchmark/scripts/create_benchmark.py YourTestNameHere
139+ ```
140+
141+ The script will automatically:
1371421 . Add a new Swift file (` YourTestNameHere.swift ` ), built according to
138143 the template below, to the ` single-source ` directory.
139- 2 . Add the filename of the new Swift file to CMakeLists.txt
140- 3 . Edit ` main.swift ` . Import and register your new Swift module.
144+ 2 . Add the filename of the new Swift file to ` CMakeLists.txt ` .
145+ 3 . Edit ` main.swift ` by importing and registering your new Swift module.
141146
142147To add a new multiple file test:
143148
You can’t perform that action at this time.
0 commit comments