| commit | 36652d3b1a4bb3ab9dafaad5ca62a5fe4f7bf0bf | [log] [tgz] |
|---|---|---|
| author | Clement Skau <cskau@google.com> | Thu Nov 04 15:16:24 2021 +0000 |
| committer | commit-bot@chromium.org <commit-bot@chromium.org> | Thu Nov 04 15:16:24 2021 +0000 |
| tree | e475c075995197a23fd3529163487abb55caeb1b | |
| parent | 6732808c4061531dab3b0620a1a3c9849147bd2a [diff] |
[benchmark] Adds native call benchmark. Adds new benchmarks for native calls, parallel to the existing benchmark for FFI calls. This makes it possible (with some caveats) to compare overheads of calling through native and FFI. Local results on Linux, x64, AOT (for reference): NativeCall.Uint8x01(RunTime): 585.9797891036907 us. NativeCall.Int64x20(RunTime): 1340.2451440053583 us. NativeCall.Doublex01(RunTime): 694.4875 us. NativeCall.Doublex20(RunTime): 1610.102172164119 us. NativeCall.Handlex01(RunTime): 735.7863184994483 us. NativeCall.Handlex20(RunTime): 836.6783772480134 us. FfiCall.Uint8x01(RunTime): 202.5837131570951 us. FfiCall.Int64x20(RunTime): 328.16931911402787 us. FfiCall.Doublex01(RunTime): 220.58028231142478 us. FfiCall.Doublex20(RunTime): 373.4350261389096 us. FfiCall.Handlex01(RunTime): 357.4213724088635 us. FfiCall.Handlex20(RunTime): 1152.427995391705 us. TEST=Manually ran benchmark locally. Change-Id: Ib28455fbd9f739c1e3ba487b932b464fc12b7e04 Cq-Include-Trybots: luci.dart.try:benchmark-linux-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218920 Commit-Queue: Clement Skau <cskau@google.com> Reviewed-by: Daco Harkes <dacoharkes@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.