From cb96bfbfdf0045383f11ed4c87e8142aafddf538 Mon Sep 17 00:00:00 2001 From: Xiaodi Wu <13952+xwu@users.noreply.github.com> Date: Wed, 16 Sep 2020 21:38:19 -0400 Subject: [PATCH] [benchmark] Tweak naming and workload for two new tests --- benchmark/single-source/FloatingPointConversion.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/single-source/FloatingPointConversion.swift b/benchmark/single-source/FloatingPointConversion.swift index 305436a4d80a3..111276ee20938 100644 --- a/benchmark/single-source/FloatingPointConversion.swift +++ b/benchmark/single-source/FloatingPointConversion.swift @@ -24,8 +24,8 @@ public let FloatingPointConversion = [ tags: [.validation, .api], setUpFunction: { blackHole(mockFloat64s) }), BenchmarkInfo( - name: "ConvertFloatingPoint.MockFloat64Exactly.bis", - runFunction: run_ConvertFloatingPoint_MockFloat64Exactly_bis, + name: "ConvertFloatingPoint.MockFloat64Exactly2", + runFunction: run_ConvertFloatingPoint_MockFloat64Exactly2, tags: [.validation, .api], setUpFunction: { blackHole(mockFloat64s) }), BenchmarkInfo( @@ -183,7 +183,7 @@ func convert< @inline(never) public func run_ConvertFloatingPoint_MockFloat64Exactly(_ N: Int) { - for _ in 0..<(N * 100) { + for _ in 0..<(N * 25) { for element in mockFloat64s { let f = convert(exactly: identity(element), to: Double.self) blackHole(f) @@ -192,8 +192,8 @@ public func run_ConvertFloatingPoint_MockFloat64Exactly(_ N: Int) { } @inline(never) -public func run_ConvertFloatingPoint_MockFloat64Exactly_bis(_ N: Int) { - for _ in 0..<(N * 100) { +public func run_ConvertFloatingPoint_MockFloat64Exactly2(_ N: Int) { + for _ in 0..<(N * 25) { for element in mockFloat64s { let f = convert(exactly: identity(element), to: MockFloat32.self) blackHole(f)