@@ -70,19 +70,17 @@ The following build options are available:
70
70
71
71
The following build targets are available:
72
72
73
- 1 . ` swift-benchmark-macosx-x86_64 `
74
- 2 . ` swift-benchmark-iphoneos-arm64 `
75
- 3 . ` swift-benchmark-iphoneos-armv7 `
76
- 4 . ` swift-benchmark-appletvos-arm64 `
77
- 5 . ` swift-benchmark-watchos-armv7k `
73
+ * ` swift-benchmark-macosx-x86_64 `
74
+ * ` swift-benchmark-iphoneos-arm64 `
75
+ * ` swift-benchmark-iphoneos-armv7 `
76
+ * ` swift-benchmark-appletvos-arm64 `
77
+ * ` swift-benchmark-watchos-armv7k `
78
78
79
79
Build steps (with example options):
80
80
81
- 1 . ` $ cd benchmark `
82
- 2 . ` $ mkdir build `
83
- 3 . ` $ cd build `
84
- 4 . ` $ cmake ../benchmark -G Ninja -DSWIFT_EXEC=[path to built swiftc] `
85
- 5 . ` $ ninja swift-benchmark-macosx-x86_64 `
81
+ 1 . ` $ mkdir build; cd build `
82
+ 2 . ` $ cmake [path to swift src]/benchmark -G Ninja -DSWIFT_EXEC=[path to built swiftc] `
83
+ 3 . ` $ ninja swift-benchmark-macosx-x86_64 `
86
84
87
85
Benchmark binaries are placed in ` bin ` .
88
86
@@ -96,12 +94,12 @@ relative to the benchmark binary at the time it was executed
96
94
For example, to benchmark against a locally built ` swiftc ` , including
97
95
any standard library changes in that build, you might configure using:
98
96
99
- cmake .. /benchmark -G Ninja -DSWIFT_EXEC=<src>/swift/ build/swift-macosx-x86_64/bin/swiftc
97
+ cmake <src> /benchmark -G Ninja -DSWIFT_EXEC=<build> /swift-macosx-x86_64/bin/swiftc
100
98
ninja swift-benchmark-iphoneos-arm64
101
99
102
100
To build against the installed Xcode, simply omit SWIFT_EXEC:
103
101
104
- cmake .. /benchmark -G Ninja
102
+ cmake <src> /benchmark -G Ninja
105
103
ninja swift-benchmark-iphoneos-arm64
106
104
107
105
In both examples above, to run the benchmarks on a device, the dynamic
@@ -110,7 +108,7 @@ relative to `swiftc`. To benchmark against the target machine's
110
108
installed libraries instead, enable
111
109
` SWIFT_BENCHMARK_USE_OS_LIBRARIES ` .
112
110
113
- cmake .. /benchmark -G Ninja -DSWIFT_BENCHMARK_USE_OS_LIBRARIES=ON
111
+ cmake <src> /benchmark -G Ninja -DSWIFT_BENCHMARK_USE_OS_LIBRARIES=ON
114
112
ninja swift-benchmark-iphoneos-arm64
115
113
116
114
This will reflect the performance of the Swift standard library
0 commit comments