Skip to content

Commit

Permalink
bench: !
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Feb 9, 2024
1 parent 305b0c2 commit 5a63eba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions benches/storages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ define_bench!("postgres", {
let _ = PostgresStorage::setup(&pool).await.unwrap();
PostgresStorage::new(pool)
});
define_bench!("mysql", {
let pool = MySqlPool::connect(env!("MYSQL_URL")).await.unwrap();
let _ = MysqlStorage::setup(&pool).await.unwrap();
MysqlStorage::new(pool)
});
// TODO: See why it no complete.
// define_bench!("mysql", {
// let pool = MySqlPool::connect(env!("MYSQL_URL")).await.unwrap();
// let _ = MysqlStorage::setup(&pool).await.unwrap();
// MysqlStorage::new(pool)
// });

criterion_group!(benches, sqlite_in_memory, redis, postgres, mysql);
criterion_group!(benches, sqlite_in_memory, redis, postgres);
criterion_main!(benches);

0 comments on commit 5a63eba

Please sign in to comment.