unsuitable001 / dart_cronet_sample

[SELECTED] Sample project for GSoC '21 - Cronet based HTTP package
https://github.com/google/cronet.dart
MIT License
2 stars 1 forks source link

Measure benchmarks with AOT compiled code #2

Closed mit-mit closed 3 years ago

mit-mit commented 3 years ago

Most production Dart code is AOT compiled. It would thus be good to collect the benchmarks (https://github.com/unsuitable001/dart_cronet_sample/blob/master/benchmark/benchmark.sh) using AOT compilation. To compile the terminal programs to AOT, use dart compile exe; for details see https://dart.dev/tools/dart-compile.

unsuitable001 commented 3 years ago

Implemented it. Now, the benchmarking looks even more interesting. I expected it though. As AOT compilation may speed up Dart code, I think it will not reduce the overhead of ffi, dlfcn and native port.

cc @dcharkes @mannprerak2