Egor Zhdan
7bdd9dd84a
[cxx-interop] Enable benchmarks in SwiftPM mode
...
The C++ interop benchmarks were only running when building with CMake, not with SwiftPM, because of a bug that was only triggering with SwiftPM. That bug seems to be fixed now.
2024-07-24 13:38:38 +01:00
Egor Zhdan
0bfd5722d4
[cxx-interop] Re-enable benchmarks
...
This adds an `import CxxStdlib` statement which fixes compilation. It should be redundant, but it works around a bug that got exposed by an change in explicit modules (rdar://128520766).
This will bring back the performance numbers while the underlying issue is being investigated.
2024-07-19 17:15:46 +01:00
Egor Zhdan
bd8cf0272c
[cxx-interop] Remove manual std::vector conformance in the benchmark
...
`std::vector::const_iterator` is now automatically conformed to `UnsafeCxxRandomAccessIterator`, and `std::vector` is conformed to `CxxRandomAccessCollection`.
The manually added conformances are now redundant.
2023-01-06 14:10:12 +00:00
Alex Lorenz
029ec7abe9
[interop] cxx vector benchmark - reenable it only outside SwiftPM to workaround module serialization issue
2022-10-20 16:13:44 -07:00
Alex Lorenz
e159b1d282
[interop][benchmark] disable CxxVectorSum benchmarks for now until SwiftPM build issue is resolved
2022-10-14 17:08:48 -07:00
Alex Lorenz
b701124b4c
[interop] CxxVectorSum benchmark: workaround https://github.com/apple/swift/issues/61472
2022-10-14 14:39:37 -07:00
Alex Lorenz
c4a9136731
[interop] benchmark - disable linux until https://github.com/apple/swift/issues/61547 is fixed
2022-10-11 12:26:28 -07:00
Alex Lorenz
5b88dc3a8c
[interop] benchmark - add a comment to bump up the iteration count
2022-10-10 16:39:17 -07:00
Alex Lorenz
d50f834d78
[interop] vec benchmark - update benchmark naming
2022-10-10 11:39:58 -07:00
Alex Lorenz
3341aef305
[interop] cxx vec benchmark - bump up the iter repeat count
2022-10-10 11:06:30 -07:00
Alex Lorenz
a50939b07e
[interop] cxx vec benchmark - initialize vector before benchmark
2022-10-10 11:06:10 -07:00
Alex Lorenz
0e95c759e5
[interop] cxx vector benchmark: do not use subscript until https://github.com/apple/swift/issues/61499 is fixed
2022-10-10 09:14:40 -07:00
Alex Lorenz
ca927dc295
[interop] cxx vector benchmark: iterator is fast with operator == in C++, and subscript is fast with https://github.com/apple/swift/issues/61499 fixed
2022-10-10 09:14:40 -07:00
Alex Lorenz
46342302ff
[interop] cxx vector sum benchmark - reduce iterations to avoid long times for slow runs
2022-10-10 09:14:40 -07:00
Alex Lorenz
2a07c1c8ce
[interop] benchmark: add run_CxxVectorOfU32_Sum_Swift_RawIteratorLoop that doesn't use C++ inline helpers
2022-10-10 09:13:32 -07:00
Alex Lorenz
157be05c97
[interop] rewrite the C++ vector sum benchmark to have clear naming and take iter into account
2022-10-10 09:13:31 -07:00
Alex Lorenz
d72b592eeb
[cxx-interop] Add initial benchmark to compare vector<uint32_t> sum in C++ vs Swift
2022-10-10 09:13:31 -07:00