mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The ReduceInto benchmark performs three tasks using both `reduce(_:_)` and `reduce(into:_:)` so that their performance can be compared: 1. Summing an array, reducing to `Int` 2. Filtering an array, reducing to `[Int]` 3. Counting letter frequencies, reducing to `[Character: Int]`
2.5 KiB
2.5 KiB