use columnation::*;
fn main() {
profile_copy(vec![format!("grawwwwrr!"); 1024]);
}
fn profile_copy<T: Columnation+Eq>(record: T) {
let mut arena = ColumnStack::<T>::default();
let timer = std::time::Instant::now();
for _ in 0 .. 1000 {
arena.clear();
for _ in 0 .. 1024 {
arena.copy(&record);
}
}
println!("{:?} elapsed", timer.elapsed());
}