-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Description
let opts = mysql_async::Opts::from_url("mysql://root@localhost:4000/test")?;
// let opts = mysql::Opts::from_url("mysql://root@localhost:4000/test")
let pool = mysql_async::Pool::new(opts);
// let pool = mysql::Pool::new(opts)
let start_time = std::time::SystemTime::now();
let conn = pool.get_conn().await?;
// let conn = pool.get_conn()?;
let passed = std::time::SystemTime::now().duration_since(start_time).unwrap().as_millis();
println!("{}", passed);Crate mysql only spent 2ms for get_conn() method but mysql_async cost more than 20ms
Metadata
Metadata
Assignees
Labels
No labels