using System.Diagnostics;
var sw = Stopwatch.StartNew();
.Select(n => Random.Shared.Next());
Console.WriteLine($"Just IEnumerable: {sw.ElapsedMilliseconds}ms");
var sw2 = Stopwatch.StartNew();
.Select(n => Random.Shared.Next())
Console.WriteLine($"IEnumerable.ToList(): {sw2.ElapsedMilliseconds}ms");
var sw3 = Stopwatch.StartNew();
.Select(n => Random.Shared.Next());
Console.WriteLine($"Just IEnumerable#2: {sw3.ElapsedMilliseconds}ms");