@@ -77,16 +77,18 @@ class FlutterCompletionBenchmark extends Benchmark implements FlutterBenchmark {
77
77
// time analyzing, and do apply the filter.
78
78
// Total number of suggestions: 2322.
79
79
// Filtered to: 82.
80
+ // Long name: completion-smallFile-body
81
+ var name = 'completion-1' ;
80
82
result.add (
81
- 'completion-smallFile-body' ,
83
+ name ,
82
84
BenchMarkResult (
83
85
'micros' ,
84
86
await _completionTiming (
85
87
test,
86
88
filePath: '$flutterPkgPath /lib/src/material/flutter_logo.dart' ,
87
89
uniquePrefix: 'Widget build(BuildContext context) {' ,
88
90
insertStringGenerator: () => 'M' ,
89
- name: 'completion-smallFile-body' ,
91
+ name: name ,
90
92
),
91
93
),
92
94
);
@@ -98,16 +100,18 @@ class FlutterCompletionBenchmark extends Benchmark implements FlutterBenchmark {
98
100
// JSON in the server, and deserializing on the client.
99
101
// Total number of suggestions: 2322.
100
102
// Filtered to: 2322.
103
+ // Long name: completion-smallFile-body-withoutPrefix
104
+ name = 'completion-2' ;
101
105
result.add (
102
- 'completion-smallFile-body-withoutPrefix' ,
106
+ name ,
103
107
BenchMarkResult (
104
108
'micros' ,
105
109
await _completionTiming (
106
110
test,
107
111
filePath: '$flutterPkgPath /lib/src/material/flutter_logo.dart' ,
108
112
uniquePrefix: 'Widget build(BuildContext context) {' ,
109
113
insertStringGenerator: null ,
110
- name: 'completion-smallFile-body-withoutPrefix' ,
114
+ name: name ,
111
115
),
112
116
),
113
117
);
@@ -118,16 +122,18 @@ class FlutterCompletionBenchmark extends Benchmark implements FlutterBenchmark {
118
122
// The target method body is small, so something could be optimized.
119
123
// Total number of suggestions: 4654.
120
124
// Filtered to: 182.
125
+ // Long name: completion-smallLibraryCycle-largeFile-smallBody
126
+ name = 'completion-3' ;
121
127
result.add (
122
- 'completion-smallLibraryCycle-largeFile-smallBody' ,
128
+ name ,
123
129
BenchMarkResult (
124
130
'micros' ,
125
131
await _completionTiming (
126
132
test,
127
133
filePath: '$flutterPkgPath /test/material/text_field_test.dart' ,
128
134
uniquePrefix: 'getOpacity(WidgetTester tester, Finder finder) {' ,
129
135
insertStringGenerator: () => 'M' ,
130
- name: 'completion-smallLibraryCycle-largeFile-smallBody' ,
136
+ name: name ,
131
137
),
132
138
),
133
139
);
@@ -143,16 +149,18 @@ class FlutterCompletionBenchmark extends Benchmark implements FlutterBenchmark {
143
149
// TODO(scheglov) Remove the previous sentence when improved.
144
150
// Total number of suggestions: 3429.
145
151
// Filtered to: 133.
152
+ // Long name: completion-mediumLibraryCycle-mediumFile-smallBody
153
+ name = 'completion-4' ;
146
154
result.add (
147
- 'completion-mediumLibraryCycle-mediumFile-smallBody' ,
155
+ name ,
148
156
BenchMarkResult (
149
157
'micros' ,
150
158
await _completionTiming (
151
159
test,
152
160
filePath: '$flutterPkgPath /lib/src/material/app_bar.dart' ,
153
161
uniquePrefix: 'computeDryLayout(BoxConstraints constraints) {' ,
154
162
insertStringGenerator: () => 'M' ,
155
- name: 'completion-mediumLibraryCycle-mediumFile-smallBody' ,
163
+ name: name ,
156
164
),
157
165
),
158
166
);
@@ -163,16 +171,18 @@ class FlutterCompletionBenchmark extends Benchmark implements FlutterBenchmark {
163
171
// cycle. This is expensive.
164
172
// Total number of suggestions: 1510.
165
173
// Filtered to: 0.
174
+ // Long name: completion-mediumLibraryCycle-mediumFile-api-parameterType
175
+ name = 'completion-5' ;
166
176
result.add (
167
- 'completion-mediumLibraryCycle-mediumFile-api-parameterType' ,
177
+ name ,
168
178
BenchMarkResult (
169
179
'micros' ,
170
180
await _completionTiming (
171
181
test,
172
182
filePath: '$flutterPkgPath /lib/src/material/app_bar.dart' ,
173
183
uniquePrefix: 'computeDryLayout(BoxConstraints' ,
174
184
insertStringGenerator: _IncrementingStringGenerator (),
175
- name: 'completion-mediumLibraryCycle-mediumFile-api-parameterType' ,
185
+ name: name ,
176
186
),
177
187
),
178
188
);
0 commit comments