public static IRunnableGraph<NotUsed> FlowWithMapBuilder(int numberOfCombinators) { var source = Source.Single(1); for (var i = 0; i < numberOfCombinators; i++) source = source.Select(x => x); return source.To(Sink.Ignore<int>()); }
public void Flow_with_1000_map() => MaterializationBenchmark.FlowWithMapBuilder(1000);