From d6516607d5dd4a638fa03683301b8b8a2fcba613 Mon Sep 17 00:00:00 2001 From: Adam Binford Date: Sat, 17 Feb 2024 21:59:37 -0500 Subject: [PATCH] Only need benchmark feature to run benchmarks --- README.md | 6 ++++-- crates/hdfs-native/build.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1c2e8ff..e73e8d5 100644 --- a/README.md +++ b/README.md @@ -83,5 +83,7 @@ export CLASSPATH=$(hadoop classpath) then you can run the benchmarks with ```bash -cargo bench -p hdfs-native --features benchmark,integration-test -``` \ No newline at end of file +cargo bench -p hdfs-native --features benchmark +``` + +The `benchmark` feature is required to expose `minidfs` and the internal erasure coding functions to benchmark. \ No newline at end of file diff --git a/crates/hdfs-native/build.rs b/crates/hdfs-native/build.rs index 0bfa655..bdbcd24 100644 --- a/crates/hdfs-native/build.rs +++ b/crates/hdfs-native/build.rs @@ -20,7 +20,7 @@ fn main() -> Result<()> { )?; } - #[cfg(feature = "integration-test")] + #[cfg(any(feature = "integration-test", feature = "benchmark"))] { // Copy the minidfs src to the build directory so we can run it in downstream tests let status = std::process::Command::new("cp")