- Real: 00:00:32.700, CPU: 00:02:01.165, GC gen0: 285, gen1: 80, gen2: 5
- Real: 00:00:31.421, CPU: 00:01:59.621, GC gen0: 234, gen1: 65, gen2: 4
- Real: 00:00:32.865, CPU: 00:02:02.335, GC gen0: 250, gen1: 70, gen2: 5
- Average 32328.7ms
- Real: 00:00:34.108, CPU: 00:02:06.470, GC gen0: 203, gen1: 58, gen2: 5
- Real: 00:00:33.386, CPU: 00:02:06.392, GC gen0: 224, gen1: 63, gen2: 5
- Real: 00:00:33.720, CPU: 00:02:07.764, GC gen0: 218, gen1: 63, gen2: 5
- Average 33738.0ms
Improvment: ~4%
Hi Nick,
Thanks for your reply! I have tried your sample, and found out following:
Stream.mapinice addition to APIParStream.mapidefinetely needed in API too!!File.ReadLines |> ParStream.ofSeqwork faster that sequesial reading usingStreamon files > 1GB (may be due to SSD or RAID-10 on server)inlinekeyword, coz I'm not calling this functions too many times or within loopsStream.groupByreturnStream<'Key * Seq<'T>>, may be changinh toStream<'Key * Stream<'T>>will be better?