public void LimiLabs() { using (var stream = File.OpenRead(BenchmarkData)) { using (var looped = new LoopedInputStream(stream, iterations)) { var reader = new Limilabs.Mail.Tools.MBox.MBoxReader(looped); while (reader.ReadNext() != null) { ; } } } }
public void MimeKitPersistent() { using (var stream = File.OpenRead(BenchmarkData)) { using (var looped = new LoopedInputStream(stream, iterations)) { var parser = new MimeParser(looped, MimeFormat.Mbox, true); while (!parser.IsEndOfStream) { var message = parser.ParseMessage(); message.Dispose(); } } } }