Skip to content

Commit 9abb02c

Browse files
committed
gopls/internal/regtest/bench: add an oracle completion benchmark
The enormous dataintegration package in oracle demonstrates a clear regression from [email protected] in completion CPU utilization during autocompletion. On my machine latency appears about the same, but on more resource-constrained machines this may not be the case. For golang/go#61207 Change-Id: I59631f34fe0d8d5d3329c9444d4e485840ad85ed Reviewed-on: https://go-review.googlesource.com/c/tools/+/516678 TryBot-Result: Gopher Robot <[email protected]> gopls-CI: kokoro <[email protected]> Run-TryBot: Robert Findley <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
1 parent 33da5c0 commit 9abb02c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: gopls/internal/regtest/bench/completion_test.go

+12
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,18 @@ func (kl *Kubelet) _() {
180180
`,
181181
`kl\.()`,
182182
},
183+
{
184+
"oracle",
185+
"dataintegration/pivot2.go",
186+
`
187+
package dataintegration
188+
189+
func (p *Pivot) _() {
190+
p.
191+
}
192+
`,
193+
`p\.()`,
194+
},
183195
}
184196

185197
for _, test := range tests {

0 commit comments

Comments
 (0)