Beispiel #1
0
        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)
                    {
                        ;
                    }
                }
            }
        }
Beispiel #2
0
        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();
                    }
                }
            }
        }