File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ import TestsUtils
14
14
public let StackPromo = BenchmarkInfo (
15
15
name: " StackPromo " ,
16
16
runFunction: run_StackPromo,
17
- tags: [ . regression] )
17
+ tags: [ . regression] ,
18
+ legacyFactor: 100 )
18
19
19
20
protocol Proto {
20
21
func at( ) -> Int
@@ -43,19 +44,12 @@ class Foo : Proto {
43
44
@inline ( never)
44
45
func work( _ f: Foo ) -> Int {
45
46
var r = 0
46
- for _ in 0 ..< 100_000 {
47
+ for _ in 0 ..< 1_000 {
47
48
r += testStackAllocation ( f)
48
49
}
49
50
return r
50
51
}
51
52
52
- @inline ( never)
53
- func hole( _ use: Int , _ N: Int ) {
54
- if ( N == 0 ) {
55
- print ( " use: \( use) " )
56
- }
57
- }
58
-
59
53
public func run_StackPromo( _ N: Int ) {
60
54
let foo = Foo ( )
61
55
var r = 0
@@ -66,5 +60,5 @@ public func run_StackPromo(_ N: Int) {
66
60
r -= work ( foo)
67
61
}
68
62
}
69
- hole ( r , N )
63
+ blackHole ( r )
70
64
}
You can’t perform that action at this time.
0 commit comments