XPerf
语言Dart证据

dt-list-add-empty — 空列表 + 添加

状态: 已测量

主张

在 Dart 3.13.7 中,可增长的 <int>[] + add 比 List.filled + 索引写入慢(约 4.40 倍)。

如何测量

运行时(本证据文件)

FieldValue
时间2026-10-22 亚洲/上海 (JSONL ts 为 UTC)
dart3.13.6
中值之前 (add_loop_empty)9.505 毫秒
(list_filled) 后的中位数2.158 毫秒
前/后比例~4.40×

与 lint 的对应

dartperf-lint dt-list-add-empty:保持默认严重性。

限制

  • 默认保持关闭。