Skip to content

Commit

Permalink
- lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laststylebender14 committed Oct 25, 2024
1 parent fb76574 commit 89401c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions benches/dedupe_bench.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::collections::HashSet;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::sync::Arc;

use criterion::Criterion;
use futures_util::future::join_all;
Expand All @@ -27,10 +26,10 @@ pub fn benchmark_dedupe(c: &mut Criterion) {
let cache = cache.clone();

Check warning on line 26 in benches/dedupe_bench.rs

View workflow job for this annotation

GitHub Actions / Run Formatter and Lint Check

Diff in /home/runner/work/tailcall/tailcall/benches/dedupe_bench.rs

Check warning on line 26 in benches/dedupe_bench.rs

View workflow job for this annotation

GitHub Actions / Run Formatter and Lint Check

Diff in /home/runner/work/tailcall/tailcall/benches/dedupe_bench.rs
let counter = counter.clone();
let handle = tokio::spawn(async move {
let result = cache

cache
.dedupe(&key, || Box::pin(compute_value(counter)))
.await;
result
.await
});
handles.push(handle);
}
Expand Down

1 comment on commit 89401c2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 71.07ms 31.22ms 318.72ms 77.94%
Req/Sec 356.38 84.26 696.00 76.76%

42516 requests in 30.02s, 218.22MB read

Requests/sec: 1416.03

Transfer/sec: 7.27MB

Please sign in to comment.