Skip to content

Commit e46f294

Browse files
authored
refactor(bench): remove TestServer startup capability (#2611)
The integration crate dependency existed solely for TestServer functionality that was never used in practice - users always run iggy-server separately before benchmarking.
1 parent 73de5c1 commit e46f294

28 files changed

+183
-283
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/bench/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ readme = "../../README.md"
2929
[[bin]]
3030
name = "iggy-bench"
3131
path = "src/main.rs"
32-
# Due to dependency to integration, which has a dependency to server, setting
33-
# mimalloc on server is also setting it on bench.
3432

3533
[dependencies]
3634
async-trait = { workspace = true }
@@ -45,14 +43,12 @@ governor = "0.10.4"
4543
hostname = "0.4.2"
4644
human-repr = { workspace = true }
4745
iggy = { workspace = true }
48-
integration = { workspace = true }
4946
nonzero_lit = { workspace = true }
5047
rand = { workspace = true }
5148
rayon = "1.11.0"
5249
serde = { workspace = true }
5350
sysinfo = { workspace = true }
5451
tokio = { workspace = true }
55-
toml = { workspace = true }
5652
tracing = { workspace = true }
5753
tracing-appender = { workspace = true }
5854
tracing-subscriber = { workspace = true }

core/bench/src/actors/consumer/client/high_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ use crate::actors::{
2424
},
2525
};
2626

27+
use crate::utils::{ClientFactory, login_root};
2728
use futures_util::StreamExt;
2829
use iggy::prelude::*;
29-
use integration::test_server::{ClientFactory, login_root};
3030
use std::{sync::Arc, time::Duration};
3131
use tokio::time::{Instant, timeout};
3232
use tracing::{error, warn};

core/bench/src/actors/consumer/client/low_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ use crate::actors::consumer::client::BenchmarkConsumerClient;
2020
use crate::actors::consumer::client::interface::{BenchmarkConsumerConfig, ConsumerClient};
2121
use crate::actors::{ApiLabel, BatchMetrics, BenchmarkInit};
2222
use crate::benchmarks::common::create_consumer;
23+
use crate::utils::{ClientFactory, login_root};
2324
use crate::utils::{batch_total_size_bytes, batch_user_size_bytes};
2425
use iggy::prelude::*;
25-
use integration::test_server::{ClientFactory, login_root};
2626
use std::sync::Arc;
2727
use std::time::Duration;
2828
use tokio::time::Instant;

core/bench/src/actors/consumer/typed_benchmark_consumer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
use std::sync::Arc;
2020

21+
use crate::utils::ClientFactory;
2122
use crate::{
2223
actors::consumer::{
2324
BenchmarkConsumer,
@@ -33,7 +34,6 @@ use bench_report::{
3334
numeric_parameter::BenchmarkNumericParameter,
3435
};
3536
use iggy::prelude::*;
36-
use integration::test_server::ClientFactory;
3737

3838
pub enum TypedBenchmarkConsumer {
3939
High(BenchmarkConsumer<HighLevelConsumerClient>),

core/bench/src/actors/producer/client/high_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* under the License.
1717
*/
1818

19+
use crate::utils::{ClientFactory, login_root};
1920
use crate::{
2021
actors::{
2122
ApiLabel, BatchMetrics, BenchmarkInit,
@@ -27,7 +28,6 @@ use crate::{
2728
utils::batch_generator::BenchmarkBatchGenerator,
2829
};
2930
use iggy::prelude::*;
30-
use integration::test_server::{ClientFactory, login_root};
3131
use std::sync::Arc;
3232
use tokio::time::Instant;
3333

core/bench/src/actors/producer/client/low_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
use std::sync::Arc;
2020

21+
use crate::utils::{ClientFactory, login_root};
2122
use crate::{
2223
actors::{
2324
ApiLabel, BatchMetrics, BenchmarkInit,
@@ -29,7 +30,6 @@ use crate::{
2930
utils::batch_generator::BenchmarkBatchGenerator,
3031
};
3132
use iggy::prelude::*;
32-
use integration::test_server::{ClientFactory, login_root};
3333
use tokio::time::Instant;
3434

3535
pub struct LowLevelProducerClient {

core/bench/src/actors/producer/typed_benchmark_producer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* under the License.
1717
*/
1818

19+
use crate::utils::ClientFactory;
1920
use crate::{
2021
actors::producer::{
2122
BenchmarkProducer,
@@ -31,7 +32,6 @@ use bench_report::{
3132
numeric_parameter::BenchmarkNumericParameter,
3233
};
3334
use iggy::prelude::*;
34-
use integration::test_server::ClientFactory;
3535
use std::sync::Arc;
3636

3737
pub enum TypedBenchmarkProducer {

core/bench/src/actors/producing_consumer/typed_banchmark_producing_consumer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
use std::sync::Arc;
2020

21+
use crate::utils::ClientFactory;
2122
use crate::{
2223
actors::{
2324
consumer::client::{
@@ -38,7 +39,6 @@ use bench_report::{
3839
};
3940

4041
use iggy::prelude::*;
41-
use integration::test_server::ClientFactory;
4242

4343
pub enum TypedBenchmarkProducingConsumer {
4444
High(BenchmarkProducingConsumer<HighLevelProducerClient, HighLevelConsumerClient>),

core/bench/src/analytics/report_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use std::{collections::HashMap, thread};
2020

2121
use super::metrics::group::{from_individual_metrics, from_producers_and_consumers_statistics};
22+
use crate::utils::ClientFactory;
2223
use crate::utils::get_server_stats;
2324
use bench_report::{
2425
actor_kind::ActorKind,
@@ -31,7 +32,6 @@ use bench_report::{
3132
};
3233
use chrono::{DateTime, Utc};
3334
use iggy::prelude::{CacheMetrics, CacheMetricsKey, IggyTimestamp, Stats};
34-
use integration::test_server::ClientFactory;
3535
use std::sync::Arc;
3636

3737
pub struct BenchmarkReportBuilder;

0 commit comments

Comments
 (0)