dart-sdk/pkg/front_end/benchmarks
Jens Johansen 16289b490d [CFE] Benchmarks for list copy, mapping etc.
On my computer:

1) If creating a Set from a list mapping simply adding
   each entry to the set seems faster.
2) When mapping a list to a new list using `List.generate`
  seems to be the fastest. Prefer `growable: false` if not
  needing it to be growable.
3) When creating a new list `.of` seems faster than `.from`.

Change-Id: I7f3d66100246e170cf09431dddf64b3ec39579f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228643
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-01-24 14:40:26 +00:00
..
ikg
patterns [CFE] Benchmarks for list copy, mapping etc. 2022-01-24 14:40:26 +00:00