Skip to content

Commit

Permalink
Only need benchmark feature to run benchmarks (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimahriman authored Feb 18, 2024
1 parent 83120f3 commit 94c2d88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
cargo bench -p hdfs-native --features benchmark
```

The `benchmark` feature is required to expose `minidfs` and the internal erasure coding functions to benchmark.
2 changes: 1 addition & 1 deletion crates/hdfs-native/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 94c2d88

Please sign in to comment.