#![feature(plugin, test)]
#![plugin(speculate)]
extern crate text_table;
extern crate test;
pub use test::black_box;
pub use text_table::Table;
pub use text_table::ToCell;
speculate! {
bench "about 1000 cells totaling about 50kb rendered" |b| {
let mut table = Table::new();
for i in 0..200 {
table.row((i, "foo\nbar", "\n\n\n\n\n", "baz", "quux quux quux"));
}
b.iter(|| {
black_box(table.write_to_string())
});
}
}