mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-17 03:26:20 +00:00
fb745be27f
Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
19 lines
452 B
Rust
19 lines
452 B
Rust
#![feature(test)]
|
|
extern crate melib;
|
|
|
|
use melib::mailbox::email::Envelope;
|
|
use melib::mailbox::backends::BackendOpGenerator;
|
|
use melib::mailbox::backends::maildir::MaildirOp;
|
|
|
|
extern crate test;
|
|
use self::test::Bencher;
|
|
|
|
#[bench]
|
|
fn mail_parse(b: &mut Bencher) {
|
|
b.iter(|| {
|
|
Envelope::from(Box::new(BackendOpGenerator::new(Box::new(move || {
|
|
Box::new(MaildirOp::new("test/attachment_test".to_string()))
|
|
}))))
|
|
});
|
|
}
|