Skip to content

Commit c73834a

Browse files
committed
Move metrics to df-bench
Signed-off-by: Adam Gutglick <[email protected]>
1 parent 8815e93 commit c73834a

File tree

8 files changed

+30
-31
lines changed

8 files changed

+30
-31
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ termtree = { version = "0.5" }
196196
thiserror = "2.0.3"
197197
tokio = { version = "1.47" }
198198
tokio-stream = "0.1.17"
199-
tokio-util = { version = "0.7.16" }
200199
tpchgen = { version = "2" }
201200
tpchgen-arrow = { version = "2" }
202201
tracing = { version = "0.1.41", default-features = false }

benchmarks/df-bench/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ datafusion = { workspace = true, features = [
2424
] }
2525
datafusion-common = { workspace = true }
2626
datafusion-physical-plan = { workspace = true }
27+
itertools.workspace = true
2728
object_store = { workspace = true, features = ["aws", "gcp"] }
29+
opentelemetry.workspace = true
30+
opentelemetry-otlp.workspace = true
31+
opentelemetry_sdk.workspace = true
2832
tokio = { workspace = true, features = ["full"] }
2933
url = { workspace = true }
3034
vortex-bench = { workspace = true }

benchmarks/df-bench/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

4+
pub mod metrics;
5+
46
use std::sync::Arc;
57

68
use datafusion::datasource::file_format::FileFormat;
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

4+
use std::collections::HashMap;
45
use std::sync::Arc;
56
use std::time::Duration;
67
use std::time::SystemTime;
@@ -27,10 +28,8 @@ use opentelemetry_sdk::trace::IdGenerator;
2728
use opentelemetry_sdk::trace::RandomIdGenerator;
2829
use opentelemetry_sdk::trace::SpanData;
2930
use opentelemetry_sdk::trace::SpanExporter;
30-
use vortex::utils::aliases::hash_map::HashMap;
31-
32-
use crate::Format;
33-
use crate::utils::GIT_COMMIT_ID;
31+
use vortex_bench::Format;
32+
use vortex_bench::utils::GIT_COMMIT_ID;
3433

3534
pub trait MetricsSetExt {
3635
fn merge_all_with_label(&mut self, other: MetricsSet, labels: &[Label]);

vortex-bench/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ itertools = { workspace = true }
4343
mimalloc = { workspace = true }
4444
noodles-bgzf = { workspace = true, features = ["async"] }
4545
noodles-vcf = { workspace = true, features = ["async"] }
46-
opentelemetry = { workspace = true }
47-
opentelemetry-otlp = { workspace = true, features = ["trace"] }
48-
opentelemetry_sdk = { workspace = true }
4946
parking_lot = { workspace = true }
5047
parquet = { workspace = true, features = ["async"] }
5148
rand = { workspace = true }
@@ -58,7 +55,6 @@ tabled = { workspace = true, features = ["std"] }
5855
target-lexicon = { workspace = true }
5956
tokio = { workspace = true, features = ["full"] }
6057
tokio-stream = { workspace = true }
61-
tokio-util = { workspace = true }
6258
tpchgen = { workspace = true }
6359
tpchgen-arrow = { workspace = true }
6460
tracing = { workspace = true, features = ["max_level_debug"] }

vortex-bench/src/bin/public_bi.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use vortex_bench::display::DisplayFormat;
2323
use vortex_bench::display::print_measurements_json;
2424
use vortex_bench::display::render_table;
2525
use vortex_bench::measurements::QueryMeasurement;
26-
use vortex_bench::metrics::MetricsSetExt;
2726
use vortex_bench::public_bi::FileType;
2827
use vortex_bench::public_bi::PBI_DATASETS;
2928
use vortex_bench::public_bi::PBIDataset;
@@ -164,22 +163,23 @@ fn main() -> anyhow::Result<()> {
164163

165164
match args.display_format {
166165
DisplayFormat::Table => {
167-
if args.display_metrics {
168-
for (query, format, metric_sets) in metrics {
169-
println!("\nmetrics for query={query}, {format}:");
170-
for (idx, metric_set) in metric_sets.into_iter().enumerate() {
171-
println!("scan[{idx}]:");
172-
for m in metric_set
173-
.timestamps_removed()
174-
.aggregate()
175-
.sorted_for_display()
176-
.iter()
177-
{
178-
println!("{m}");
179-
}
180-
}
181-
}
182-
}
166+
// Temporarily disabled
167+
// if args.display_metrics {
168+
// for (query, format, metric_sets) in metrics {
169+
// println!("\nmetrics for query={query}, {format}:");
170+
// for (idx, metric_set) in metric_sets.into_iter().enumerate() {
171+
// println!("scan[{idx}]:");
172+
// for m in metric_set
173+
// .timestamps_removed()
174+
// .aggregate()
175+
// .sorted_for_display()
176+
// .iter()
177+
// {
178+
// println!("{m}");
179+
// }
180+
// }
181+
// }
182+
// }
183183
render_table(&mut writer, all_measurements, &args.targets)
184184
}
185185
DisplayFormat::GhJson => print_measurements_json(&mut writer, all_measurements),

vortex-bench/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pub mod engines;
3434
pub mod fineweb;
3535
pub mod measurements;
3636
pub mod memory;
37-
pub mod metrics;
3837
pub mod public_bi;
3938
pub mod random_access;
4039
pub mod realnest;

0 commit comments

Comments
 (0)