Files
sdk/pkg/front_end/tool
Martin Kustermann bc090dc469 [CFE] Adjust benchmarking script to support scanning based on Utf8BytesScanner
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>
2022-08-15 09:07:37 +00:00
..
2022-02-02 12:20:46 +00:00