@@ -19,47 +19,56 @@ public let FloatingPointPrinting = [
19
19
BenchmarkInfo (
20
20
name: " FloatingPointPrinting_Float_description_small " ,
21
21
runFunction: run_FloatingPointPrinting_Float_description_small,
22
- tags: [ . validation, . api, . runtime, . String] ) ,
22
+ tags: [ . validation, . api, . runtime, . String] ,
23
+ legacyFactor: 108 ) ,
23
24
24
25
BenchmarkInfo (
25
26
name: " FloatingPointPrinting_Double_description_small " ,
26
27
runFunction: run_FloatingPointPrinting_Double_description_small,
27
- tags: [ . validation, . api, . runtime, . String] ) ,
28
+ tags: [ . validation, . api, . runtime, . String] ,
29
+ legacyFactor: 100 ) ,
28
30
29
31
BenchmarkInfo (
30
32
name: " FloatingPointPrinting_Float80_description_small " ,
31
33
runFunction: run_FloatingPointPrinting_Float80_description_small,
32
- tags: [ . validation, . api, . runtime, . String] ) ,
34
+ tags: [ . validation, . api, . runtime, . String] ,
35
+ legacyFactor: 108 ) ,
33
36
34
37
BenchmarkInfo (
35
38
name: " FloatingPointPrinting_Float_description_uniform " ,
36
39
runFunction: run_FloatingPointPrinting_Float_description_uniform,
37
- tags: [ . validation, . api, . runtime, . String] ) ,
40
+ tags: [ . validation, . api, . runtime, . String] ,
41
+ legacyFactor: 100 ) ,
38
42
39
43
BenchmarkInfo (
40
44
name: " FloatingPointPrinting_Double_description_uniform " ,
41
45
runFunction: run_FloatingPointPrinting_Double_description_uniform,
42
- tags: [ . validation, . api, . runtime, . String] ) ,
46
+ tags: [ . validation, . api, . runtime, . String] ,
47
+ legacyFactor: 100 ) ,
43
48
44
49
BenchmarkInfo (
45
50
name: " FloatingPointPrinting_Float80_description_uniform " ,
46
51
runFunction: run_FloatingPointPrinting_Float80_description_uniform,
47
- tags: [ . validation, . api, . runtime, . String] ) ,
52
+ tags: [ . validation, . api, . runtime, . String] ,
53
+ legacyFactor: 100 ) ,
48
54
49
55
BenchmarkInfo (
50
56
name: " FloatingPointPrinting_Float_interpolated " ,
51
57
runFunction: run_FloatingPointPrinting_Float_interpolated,
52
- tags: [ . validation, . api, . runtime, . String] ) ,
58
+ tags: [ . validation, . api, . runtime, . String] ,
59
+ legacyFactor: 200 ) ,
53
60
54
61
BenchmarkInfo (
55
62
name: " FloatingPointPrinting_Double_interpolated " ,
56
63
runFunction: run_FloatingPointPrinting_Double_interpolated,
57
- tags: [ . validation, . api, . runtime, . String] ) ,
64
+ tags: [ . validation, . api, . runtime, . String] ,
65
+ legacyFactor: 200 ) ,
58
66
59
67
BenchmarkInfo (
60
68
name: " FloatingPointPrinting_Float80_interpolated " ,
61
69
runFunction: run_FloatingPointPrinting_Float80_interpolated,
62
- tags: [ . validation, . api, . runtime, . String] )
70
+ tags: [ . validation, . api, . runtime, . String] ,
71
+ legacyFactor: 200 )
63
72
]
64
73
65
74
// Generate descriptions for 100,000 values around 1.0.
@@ -75,7 +84,7 @@ public let FloatingPointPrinting = [
75
84
76
85
@inline ( never)
77
86
public func run_FloatingPointPrinting_Float_description_small( _ N: Int ) {
78
- let count = 100_000
87
+ let count = 1_000
79
88
for _ in 0 ..< N {
80
89
for i in 1 ... count {
81
90
let f = Float ( i) / 101.0
@@ -86,7 +95,7 @@ public func run_FloatingPointPrinting_Float_description_small(_ N: Int) {
86
95
87
96
@inline ( never)
88
97
public func run_FloatingPointPrinting_Double_description_small( _ N: Int ) {
89
- let count = 100_000
98
+ let count = 1_000
90
99
for _ in 0 ..< N {
91
100
for i in 1 ... count {
92
101
let f = Double ( i) / 101.0
@@ -101,7 +110,7 @@ public func run_FloatingPointPrinting_Float80_description_small(_ N: Int) {
101
110
// On Darwin, long double is Float80 on x86, and Double otherwise.
102
111
// On Linux, Float80 is at aleast available on x86.
103
112
#if arch(x86_64) || arch(i386)
104
- let count = 100_000
113
+ let count = 1_000
105
114
for _ in 0 ..< N {
106
115
for i in 1 ... count {
107
116
let f = Float80 ( i) / 101.0
@@ -117,7 +126,7 @@ public func run_FloatingPointPrinting_Float80_description_small(_ N: Int) {
117
126
118
127
@inline ( never)
119
128
public func run_FloatingPointPrinting_Float_description_uniform( _ N: Int ) {
120
- let count = 100_000
129
+ let count = 1_000
121
130
let step = UInt32 . max / UInt32( count)
122
131
for _ in 0 ..< N {
123
132
for i in 0 ..< count {
@@ -130,7 +139,7 @@ public func run_FloatingPointPrinting_Float_description_uniform(_ N: Int) {
130
139
131
140
@inline ( never)
132
141
public func run_FloatingPointPrinting_Double_description_uniform( _ N: Int ) {
133
- let count = 100_000
142
+ let count = 1_000
134
143
let step = UInt64 . max / UInt64( count)
135
144
for _ in 0 ..< N {
136
145
for i in 0 ..< count {
@@ -147,7 +156,7 @@ public func run_FloatingPointPrinting_Float80_description_uniform(_ N: Int) {
147
156
// On Darwin, long double is Float80 on x86, and Double otherwise.
148
157
// On Linux, Float80 is at aleast available on x86.
149
158
#if arch(x86_64) || arch(i386)
150
- let count = 100_000
159
+ let count = 1_000
151
160
let step = UInt64 . max / UInt64( count)
152
161
for _ in 0 ..< N {
153
162
for i in 0 ..< count {
@@ -167,7 +176,7 @@ public func run_FloatingPointPrinting_Float80_description_uniform(_ N: Int) {
167
176
168
177
@inline ( never)
169
178
public func run_FloatingPointPrinting_Float_interpolated( _ N: Int ) {
170
- let count = 100_000
179
+ let count = 500
171
180
let step = UInt32 . max / UInt32( count)
172
181
for _ in 0 ..< N {
173
182
for i in 0 ..< count {
@@ -180,7 +189,7 @@ public func run_FloatingPointPrinting_Float_interpolated(_ N: Int) {
180
189
181
190
@inline ( never)
182
191
public func run_FloatingPointPrinting_Double_interpolated( _ N: Int ) {
183
- let count = 100_000
192
+ let count = 500
184
193
let step = UInt64 . max / UInt64( count)
185
194
for _ in 0 ..< N {
186
195
for i in 0 ..< count {
@@ -197,7 +206,7 @@ public func run_FloatingPointPrinting_Float80_interpolated(_ N: Int) {
197
206
// On Darwin, long double is Float80 on x86, and Double otherwise.
198
207
// On Linux, Float80 is at aleast available on x86.
199
208
#if arch(x86_64) || arch(i386)
200
- let count = 100_000
209
+ let count = 500
201
210
let step = UInt64 . max / UInt64( count)
202
211
for _ in 0 ..< N {
203
212
for i in 0 ..< count {
@@ -210,4 +219,3 @@ public func run_FloatingPointPrinting_Float80_interpolated(_ N: Int) {
210
219
#endif // x86
211
220
#endif // Darwin/Linux
212
221
}
213
-
0 commit comments