Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 210 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tokio = { version = "1", features = ["full"] }
sqlx = { version = "0.9.0-alpha.1", features = ["sqlx-toml", "postgres", "runtime-tokio", "chrono", "tls-rustls", "uuid", "migrate"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_with = "3"
anyhow = "1"
thiserror = "2"
async-trait = "0.1"
Expand Down
16 changes: 10 additions & 6 deletions benches/checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ fn bench_step_cache_miss(c: &mut Criterion) {
.unwrap();

let start = std::time::Instant::now();
let worker =
ctx.client.start_worker(bench_worker_options(1, 120)).await;
let worker = ctx
.client
.start_worker(bench_worker_options(1, Duration::from_secs(120)))
.await;

wait_for_tasks_complete(&ctx.pool, &ctx.queue_name, 1, 60).await;
total_time += start.elapsed();
Expand Down Expand Up @@ -91,7 +93,7 @@ fn bench_step_cache_hit(c: &mut Criterion) {

let worker = ctx
.client
.start_worker(bench_worker_options(1, 120))
.start_worker(bench_worker_options(1, Duration::from_secs(120)))
.await;

wait_for_tasks_complete(&ctx.pool, &ctx.queue_name, 1, 60).await;
Expand Down Expand Up @@ -123,7 +125,7 @@ fn bench_step_cache_hit(c: &mut Criterion) {
let start = std::time::Instant::now();
let worker = ctx
.client
.start_worker(bench_worker_options(1, 120))
.start_worker(bench_worker_options(1, Duration::from_secs(120)))
.await;

wait_for_tasks_complete(&ctx.pool, &ctx.queue_name, 1, 60).await;
Expand Down Expand Up @@ -177,8 +179,10 @@ fn bench_large_payload_checkpoint(c: &mut Criterion) {
.unwrap();

let start = std::time::Instant::now();
let worker =
ctx.client.start_worker(bench_worker_options(1, 120)).await;
let worker = ctx
.client
.start_worker(bench_worker_options(1, Duration::from_secs(120)))
.await;

wait_for_tasks_complete(&ctx.pool, &ctx.queue_name, 1, 120).await;
total_time += start.elapsed();
Expand Down
Loading