Skip to content

Commit f7efaf5

Browse files
committed
improve testing
1 parent 84f9f8e commit f7efaf5

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ paste = "1.0.14"
2626
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
2727
pprof = { version = "0.13", features = ["flamegraph"] }
2828
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
29-
apalis-sqlite = { version = "1.0.0-alpha.3", features = ["tokio-comp"] }
30-
apalis-postgres = { version = "1.0.0-alpha.1", features = ["tokio-comp"] }
31-
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "sqlite", "macros"] }
29+
apalis-sqlite = { version = "1.0.0-alpha.3", features = ["tokio-comp", "migrate"] }
30+
apalis-postgres = { version = "1.0.0-alpha.1", features = ["tokio-comp", "migrate"] }
31+
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "sqlite", "macros", "migrate"] }
3232

33-
[[bench]]
34-
name = "sqlite"
35-
harness = false
33+
# [[bench]]
34+
# name = "sqlite"
35+
# harness = false
3636

3737
[[bench]]
3838
name = "postgres"

benches/postgres.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ define_backend_bench!("postgres_basic", 10000, {
1616
PostgresStorage::new_with_config(&pool, &Config::new("benches_basic"))
1717
});
1818

19-
define_backend_bench!("postgres_with_notify", 10000, {
20-
let pool = PgPool::connect(env!("DATABASE_URL")).await.unwrap();
21-
let _ = PostgresStorage::setup(&pool).await;
22-
PostgresStorage::new_with_notify(&pool, &Config::new("benches_with_notify"))
23-
});
19+
// define_backend_bench!("postgres_with_notify", 10000, {
20+
// let pool = PgPool::connect(env!("DATABASE_URL")).await.unwrap();
21+
// let _ = PostgresStorage::setup(&pool).await;
22+
// PostgresStorage::new_with_notify(&pool, &Config::new("benches_with_notify")).await
23+
// });
2424

25-
criterion_group!(benches, postgres_basic, postgres_with_notify);
25+
criterion_group!(benches, postgres_basic);
2626
criterion_main!(benches);

0 commit comments

Comments
 (0)