Skip to content

Commit 94c2d88

Browse files
authored
Only need benchmark feature to run benchmarks (#76)
1 parent 83120f3 commit 94c2d88

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,7 @@ export CLASSPATH=$(hadoop classpath)
8383

8484
then you can run the benchmarks with
8585
```bash
86-
cargo bench -p hdfs-native --features benchmark,integration-test
87-
```
86+
cargo bench -p hdfs-native --features benchmark
87+
```
88+
89+
The `benchmark` feature is required to expose `minidfs` and the internal erasure coding functions to benchmark.

crates/hdfs-native/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn main() -> Result<()> {
2020
)?;
2121
}
2222

23-
#[cfg(feature = "integration-test")]
23+
#[cfg(any(feature = "integration-test", feature = "benchmark"))]
2424
{
2525
// Copy the minidfs src to the build directory so we can run it in downstream tests
2626
let status = std::process::Command::new("cp")

0 commit comments

Comments
 (0)