@@ -16,15 +16,18 @@ public let FloatingPointConversion = [
16
16
BenchmarkInfo (
17
17
name: " ConvertFloatingPoint.ConcreteDoubleToDouble " ,
18
18
runFunction: run_ConvertFloatingPoint_ConcreteDoubleToDouble,
19
- tags: [ . validation, . api] ) ,
19
+ tags: [ . validation, . api] ,
20
+ setUpFunction: { blackHole ( doubles) } ) ,
20
21
BenchmarkInfo (
21
22
name: " ConvertFloatingPoint.GenericDoubleToDouble " ,
22
23
runFunction: run_ConvertFloatingPoint_GenericDoubleToDouble,
23
- tags: [ . validation, . api] ) ,
24
+ tags: [ . validation, . api] ,
25
+ setUpFunction: { blackHole ( doubles) } ) ,
24
26
BenchmarkInfo (
25
27
name: " ConvertFloatingPoint.MockFloat64ToDouble " ,
26
28
runFunction: run_ConvertFloatingPoint_MockFloat64ToDouble,
27
- tags: [ . validation, . api] ) ,
29
+ tags: [ . validation, . api] ,
30
+ setUpFunction: { blackHole ( mockFloat64s) } ) ,
28
31
]
29
32
30
33
protocol MockBinaryFloatingPoint : BinaryFloatingPoint {
@@ -125,11 +128,6 @@ extension MockBinaryFloatingPoint {
125
128
mutating func round( _ rule: FloatingPointRoundingRule ) { _value. round ( rule) }
126
129
}
127
130
128
- struct MockFloat32 : MockBinaryFloatingPoint {
129
- var _value : Float
130
- init ( _ _value: Float ) { self . _value = _value }
131
- }
132
-
133
131
struct MockFloat64 : MockBinaryFloatingPoint {
134
132
var _value : Double
135
133
init ( _ _value: Double ) { self . _value = _value }
0 commit comments