2019-04-04 11:21:52 +00:00
|
|
|
//#![feature(test)]
|
|
|
|
//extern crate melib;
|
|
|
|
//
|
|
|
|
//use melib::mailbox::backends::maildir::MaildirOp;
|
|
|
|
//use melib::mailbox::email::Envelope;
|
|
|
|
//
|
|
|
|
//extern crate test;
|
|
|
|
//use self::test::Bencher;
|
2017-09-14 15:08:14 +00:00
|
|
|
|
2018-08-04 17:30:21 +00:00
|
|
|
/*
|
2017-09-14 15:08:14 +00:00
|
|
|
#[bench]
|
|
|
|
fn mail_parse(b: &mut Bencher) {
|
2017-09-16 12:05:28 +00:00
|
|
|
b.iter(|| {
|
|
|
|
Envelope::from(Box::new(BackendOpGenerator::new(Box::new(move || {
|
|
|
|
Box::new(MaildirOp::new("test/attachment_test".to_string()))
|
|
|
|
}))))
|
|
|
|
});
|
2017-09-14 15:08:14 +00:00
|
|
|
}
|
2018-08-04 17:30:21 +00:00
|
|
|
*/
|