commit | bc090dc4695dd795d4a923447c3b5cf76384a821 | [log] [tgz] |
---|---|---|
author | Martin Kustermann <kustermann@google.com> | Mon Aug 15 09:07:37 2022 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Aug 15 09:07:37 2022 |
tree | 762f123ccbc8bd53b74ed5c97561a6398161735c | |
parent | b928fd308385fb72677845ec140b81357385240c [diff] |
[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>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.