Skip to content

Commit cb96bfb

Browse files
committed
[benchmark] Tweak naming and workload for two new tests
1 parent 26f3c81 commit cb96bfb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

benchmark/single-source/FloatingPointConversion.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public let FloatingPointConversion = [
2424
tags: [.validation, .api],
2525
setUpFunction: { blackHole(mockFloat64s) }),
2626
BenchmarkInfo(
27-
name: "ConvertFloatingPoint.MockFloat64Exactly.bis",
28-
runFunction: run_ConvertFloatingPoint_MockFloat64Exactly_bis,
27+
name: "ConvertFloatingPoint.MockFloat64Exactly2",
28+
runFunction: run_ConvertFloatingPoint_MockFloat64Exactly2,
2929
tags: [.validation, .api],
3030
setUpFunction: { blackHole(mockFloat64s) }),
3131
BenchmarkInfo(
@@ -183,7 +183,7 @@ func convert<
183183

184184
@inline(never)
185185
public func run_ConvertFloatingPoint_MockFloat64Exactly(_ N: Int) {
186-
for _ in 0..<(N * 100) {
186+
for _ in 0..<(N * 25) {
187187
for element in mockFloat64s {
188188
let f = convert(exactly: identity(element), to: Double.self)
189189
blackHole(f)
@@ -192,8 +192,8 @@ public func run_ConvertFloatingPoint_MockFloat64Exactly(_ N: Int) {
192192
}
193193

194194
@inline(never)
195-
public func run_ConvertFloatingPoint_MockFloat64Exactly_bis(_ N: Int) {
196-
for _ in 0..<(N * 100) {
195+
public func run_ConvertFloatingPoint_MockFloat64Exactly2(_ N: Int) {
196+
for _ in 0..<(N * 25) {
197197
for element in mockFloat64s {
198198
let f = convert(exactly: identity(element), to: MockFloat32.self)
199199
blackHole(f)

0 commit comments

Comments
 (0)