mirror of
https://github.com/dart-lang/sdk
synced 2024-09-30 06:11:16 +00:00
c437107a4c
E.g. compile to aot: out/ReleaseX64/dart-sdk/bin/dart compile aot-snapshot pkg/front_end/test/isolates_v_processes.dart And run with a different number of isolates: $ out/ReleaseX64/dart-sdk/bin/dartaotruntime --deterministic pkg/front_end/test/isolates_v_processes.aot --isolates -j1 => 0:01:13.683401 $ out/ReleaseX64/dart-sdk/bin/dartaotruntime --deterministic pkg/front_end/test/isolates_v_processes.aot --isolates -j2 => 0:00:53.379932 $ out/ReleaseX64/dart-sdk/bin/dartaotruntime --deterministic pkg/front_end/test/isolates_v_processes.aot --isolates -j4 => 0:01:12.864165 (you might change `const bool doPrint = false;` to `true`, compile again, run with -j4 and see interesting stops when it runs) ...or you could try the same but using processes: $ out/ReleaseX64/dart-sdk/bin/dartaotruntime --deterministic pkg/front_end/test/isolates_v_processes.aot --processes -j1 => 0:01:17.590922 $ out/ReleaseX64/dart-sdk/bin/dartaotruntime --deterministic pkg/front_end/test/isolates_v_processes.aot --processes -j2 => 0:00:44.055109 $ out/ReleaseX64/dart-sdk/bin/dartaotruntime --deterministic pkg/front_end/test/isolates_v_processes.aot --processes -j4 => 0:00:26.360444 Change-Id: Ie161e7dfa0f29931af34058b7b043ce93b839218 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/375481 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> |
||
---|---|---|
.. | ||
src | ||
testing.dart |