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
132
132
133
133
The harness generator supports both single and multiple file tests.
134
134
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 :
136
136
137
+ ```
138
+ swift-source$ ./swift/benchmark/scripts/create_benchmark.py YourTestNameHere
139
+ ```
140
+
141
+ The script will automatically:
137
142
1 . Add a new Swift file (` YourTestNameHere.swift ` ), built according to
138
143
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.
141
146
142
147
To add a new multiple file test:
143
148
You can’t perform that action at this time.
0 commit comments