Skip to content

Commit e6e5524

Browse files
committed
[cxx-interop] Increase the size of std::strings in benchmarks
Since #75608, the performance of `std::string` <=> `Swift.String` conversions improved significantly. To make sure the workload is significant enough for the benchmark results to be noise-free, this bumps the size of Swift strings that are being tested.
1 parent fe796b4 commit e6e5524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/cxx-source/CxxStringConversion.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import CxxStdlibPerformance
1515
import CxxStdlib
1616

1717
let cxxStringSize = 1_000_000
18-
let swiftStringSize = 25_000
18+
let swiftStringSize = 1_000_000
1919

2020
var cxxString: std.string? = nil
2121
var swiftString: String? = nil

0 commit comments

Comments
 (0)