]> Cypherpunks repositories - gostls13.git/commit
go/scanner: improve variety in benchmarks for file scanning
authorRob Findley <rfindley@google.com>
Wed, 7 Apr 2021 21:43:09 +0000 (17:43 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 27 Apr 2021 15:57:56 +0000 (15:57 +0000)
commitbc6288794de10fddea0a3c3cfcb1cfd2bf2aa8a0
tree4ff7dd8f4472722412c00264fe49ec77f355309a
parent6fa12172d9f0696b6ae6a0155b63994ae23b8d21
go/scanner: improve variety in benchmarks for file scanning

BenchmarkScanFile was scanning scanner.go, which makes comparison
difficult for a CL modifying that file. That file is also is not
necessarily representative syntax.

Add a few additional files as subtests to provide a larger variety of
metrics.

Change-Id: Ib78303c2546debd84a0b5478ae438ba891d9e6e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/308610
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/scanner/scanner_test.go