Fix benches linting
This commit is contained in:
parent
d21cc68933
commit
4737622052
1 changed files with 3 additions and 9 deletions
|
@ -31,9 +31,7 @@ fn bench_sync_vs_async_users_flat_instant(c: &mut Criterion) {
|
||||||
let mut group = c.benchmark_group("Sync vs Async - Users Flat - Instant");
|
let mut group = c.benchmark_group("Sync vs Async - Users Flat - Instant");
|
||||||
for count in [1, 10] {
|
for count in [1, 10] {
|
||||||
group.bench_function(BenchmarkId::new("Sync", count), |b| {
|
group.bench_function(BenchmarkId::new("Sync", count), |b| {
|
||||||
let ids = (0..count)
|
let ids = (0..count).map(InputValue::scalar).collect::<Vec<_>>();
|
||||||
.map(|x| InputValue::scalar(x as i32))
|
|
||||||
.collect::<Vec<_>>();
|
|
||||||
let ids = InputValue::list(ids);
|
let ids = InputValue::list(ids);
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
j::execute_sync(
|
j::execute_sync(
|
||||||
|
@ -48,9 +46,7 @@ fn bench_sync_vs_async_users_flat_instant(c: &mut Criterion) {
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let ids = (0..count)
|
let ids = (0..count).map(InputValue::scalar).collect::<Vec<_>>();
|
||||||
.map(|x| InputValue::scalar(x as i32))
|
|
||||||
.collect::<Vec<_>>();
|
|
||||||
let ids = InputValue::list(ids);
|
let ids = InputValue::list(ids);
|
||||||
|
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
|
@ -65,9 +61,7 @@ fn bench_sync_vs_async_users_flat_instant(c: &mut Criterion) {
|
||||||
group.bench_function(BenchmarkId::new("Async - Threadpool", count), |b| {
|
group.bench_function(BenchmarkId::new("Async - Threadpool", count), |b| {
|
||||||
let rt = tokio::runtime::Builder::new_multi_thread().build().unwrap();
|
let rt = tokio::runtime::Builder::new_multi_thread().build().unwrap();
|
||||||
|
|
||||||
let ids = (0..count)
|
let ids = (0..count).map(InputValue::scalar).collect::<Vec<_>>();
|
||||||
.map(|x| InputValue::scalar(x as i32))
|
|
||||||
.collect::<Vec<_>>();
|
|
||||||
let ids = InputValue::list(ids);
|
let ids = InputValue::list(ids);
|
||||||
|
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
|
|
Loading…
Reference in a new issue