public bool MimeKitParser() { var parser = new MimeKit.MimeParser(Stream.Null); foreach (var stream in _streams) { parser.SetStream(stream, true); parser.ParseMessage(); stream.Position = 0; } return(true); }
static TimeSpan MeasureMimeKit(Stream stream, int count) { var parser = new MimeKit.MimeParser(Stream.Null); var stopwatch = new Stopwatch(); stopwatch.Start(); for (int i = 0; i < count; i++) { parser.SetStream(stream, true); parser.ParseMessage(); stream.Position = 0; } stopwatch.Stop(); return(stopwatch.Elapsed); }