File tree Expand file tree Collapse file tree 4 files changed +0
-151
lines changed Expand file tree Collapse file tree 4 files changed +0
-151
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,6 @@ set(SWIFT_BENCH_MODULES
214
214
cxx-source/CxxVectorSum
215
215
# TODO: rdar://92120528
216
216
# cxx-source/ReadAccessor
217
- cxx-source/CxxSpanTests
218
217
)
219
218
220
219
set (SWIFT_MULTISOURCE_SWIFT_BENCHES
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
#include < vector>
5
5
#include < set>
6
6
7
- // FIXME swift-ci linux tests do not support std::span
8
- #if __has_include(<span>)
9
- #include < span>
10
- #endif
11
-
12
- static const size_t spanSize = 50000 ;
13
-
14
- using ArrayOfU32 = uint32_t [spanSize];
15
7
using VectorOfU32 = std::vector<uint32_t >;
16
8
using SetOfU32 = std::set<uint32_t >;
17
- #if __has_include(<span>)
18
- using SpanOfU32 = std::span<uint32_t >;
19
- #endif
20
9
21
- static inline ArrayOfU32 array;
22
10
static inline VectorOfU32 vec;
23
11
static inline SetOfU32 set;
24
- #if __has_include(<span>)
25
- static inline SpanOfU32 span;
26
- #endif
27
12
28
13
inline void initVector (size_t size) {
29
14
if (!vec.empty ()) {
@@ -44,18 +29,6 @@ inline void initSet(size_t size) {
44
29
}
45
30
}
46
31
47
- #if __has_include(<span>)
48
- inline void initSpan () {
49
- if (!span.empty ()) {
50
- return ;
51
- }
52
- for (size_t i = 0 ; i < spanSize; ++i) {
53
- array[i] = uint32_t (i);
54
- }
55
- span = SpanOfU32 (array);
56
- }
57
- #endif
58
-
59
32
inline VectorOfU32 makeVector32 (size_t size) {
60
33
initVector (size);
61
34
return vec;
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ import CreateObjects
60
60
import CxxStringConversion
61
61
// rdar://128520766
62
62
// import CxxVectorSum
63
- import CxxSpanTests
64
63
import DataBenchmarks
65
64
import DeadArray
66
65
import DevirtualizeProtocolComposition
@@ -259,7 +258,6 @@ register(CreateObjects.benchmarks)
259
258
register ( CxxStringConversion . benchmarks)
260
259
// rdar://128520766
261
260
// register(CxxVectorSum.benchmarks)
262
- register ( CxxSpanTests . benchmarks)
263
261
register ( DataBenchmarks . benchmarks)
264
262
register ( DeadArray . benchmarks)
265
263
register ( DevirtualizeProtocolComposition . benchmarks)
You can’t perform that action at this time.
0 commit comments