From e6e5524fb1ee48cb190a85853f2b00753380e4b0 Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Mon, 30 Sep 2024 17:10:10 +0100 Subject: [PATCH] [cxx-interop] Increase the size of `std::string`s in benchmarks Since https://github.com/swiftlang/swift/pull/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. --- benchmark/cxx-source/CxxStringConversion.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/cxx-source/CxxStringConversion.swift b/benchmark/cxx-source/CxxStringConversion.swift index 6dbec589760..a10418800e2 100644 --- a/benchmark/cxx-source/CxxStringConversion.swift +++ b/benchmark/cxx-source/CxxStringConversion.swift @@ -15,7 +15,7 @@ import CxxStdlibPerformance import CxxStdlib let cxxStringSize = 1_000_000 -let swiftStringSize = 25_000 +let swiftStringSize = 1_000_000 var cxxString: std.string? = nil var swiftString: String? = nil