bc090dc469
The CFE itself uses [Utf8BytesScanner] in it's normal operation. The analyzer instead uses [StringScanner]. The performance script used today only measures scanning performance based on [StringScanner]. => This CL adds a `scan_bytes` subcommand that will measure scanner performance based on bytes (the CFE default mode). The performance script discovers the files to scan for the benchmark by using the analyzer to transitively scan/parse files and looking at the imports. Doing so will - as a side effect- fill [StringCanonicalizer] with values. => This CL cleans the [StringCanonicalizer] cache before doing the actual benchmarking. TEST=ci Change-Id: I996efe6b3551983df19ed5aad4fc4220c07336cd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255120 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Jens Johansen <jensj@google.com>