/*
let mut btree = std::collections::BTreeMap::new();
let now = std::time::SystemTime::now();
for i in 0..n {
btree.insert(i * i, i * i * i);
}
println!("std: {:?}", now.elapsed());
*/
/*
std::mem::forget(txn);
{
let env = EnvBuilder::new()
.map_size(1 << 27)
.open("test-lmdb", 0o777)
.unwrap();
let db_handle = env.get_default_db(DbFlags::empty()).unwrap();
let txn = env.new_transaction().unwrap();
{
let db = txn.bind(&db_handle); // get a database bound to this transaction
let now = std::time::SystemTime::now();
for i in 0..n {
db.set(&(i * i), &(i * i * i)).unwrap();
}
println!("lmdb: {:?}", now.elapsed());
}
}
*/