Skip to content

Commit fd01ed6

Browse files
committed
[benchmark] StringDistance: Increase ASCII workload
1 parent 42f1389 commit fd01ed6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

benchmark/single-source/StringDistance.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,23 @@ let asciiString = #"""
112112
high-level constructs like objects, protocols, closures, and generics. Swift
113113
embraces modules, eliminating the need for headers and the code duplication
114114
they entail.
115+
116+
Swift toolchains are created using the script
117+
[build-toolchain](https://github.com/apple/swift/blob/main/utils/build-toolchain).
118+
This script is used by swift.org's CI to produce snapshots and can allow for
119+
one to locally reproduce such builds for development or distribution purposes.
120+
A typical invocation looks like the following:
121+
122+
```
123+
$ ./swift/utils/build-toolchain $BUNDLE_PREFIX
124+
```
125+
126+
where ``$BUNDLE_PREFIX`` is a string that will be prepended to the build date
127+
to give the bundle identifier of the toolchain's ``Info.plist``. For instance,
128+
if ``$BUNDLE_PREFIX`` was ``com.example``, the toolchain produced will have
129+
the bundle identifier ``com.example.YYYYMMDD``. It will be created in the
130+
directory you run the script with a filename of the form:
131+
``swift-LOCAL-YYYY-MM-DD-a-osx.tar.gz``.
115132
"""#
116133

117134
let asciiRanges = (

0 commit comments

Comments
 (0)