From 36398f8af2c39486e94d494c637159e76d229222 Mon Sep 17 00:00:00 2001 From: Ziyang Hu Date: Sat, 1 Oct 2022 17:04:34 +0800 Subject: [PATCH] record db creation time in test --- tests/air_routes.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/air_routes.rs b/tests/air_routes.rs index 2a93da6f..4145db7c 100644 --- a/tests/air_routes.rs +++ b/tests/air_routes.rs @@ -10,10 +10,12 @@ use cozorocks::DbBuilder; lazy_static! { static ref TEST_DB: Db = { + let creation = Instant::now(); let path = "_test_air_routes"; _ = std::fs::remove_dir_all(path); let builder = DbBuilder::default().path(path).create_if_missing(true); let db = Db::build(builder).unwrap(); + dbg!(creation.elapsed()); let init = Instant::now(); db.run_script(r##"