Commit 7439600e authored by Thomas Daede's avatar Thomas Daede Committed by Thomas Daede
Browse files

Fix README command for running cargo bench.

parent d2e22b93
...@@ -55,7 +55,7 @@ jobs: ...@@ -55,7 +55,7 @@ jobs:
- name: "Tests" - name: "Tests"
script: cargo test --verbose --release --features=decode_test -- --ignored script: cargo test --verbose --release --features=decode_test -- --ignored
- name: "Bench" - name: "Bench"
script: RUSTFLAGS="--cfg rav1e_bench" cargo bench --verbose script: cargo bench --features=bench --verbose
- name: "Doc & Clippy (linter): verifying code quality" - name: "Doc & Clippy (linter): verifying code quality"
script: script:
- cargo doc --verbose --no-deps - cargo doc --verbose --no-deps
......
...@@ -21,6 +21,7 @@ signal_support = ["signal-hook"] ...@@ -21,6 +21,7 @@ signal_support = ["signal-hook"]
dump_ivf = ["ivf"] dump_ivf = ["ivf"]
quick_test = [] quick_test = []
desync_finder = [] desync_finder = []
bench = []
[dependencies] [dependencies]
arg_enum_proc_macro = "0.1.1" arg_enum_proc_macro = "0.1.1"
......
...@@ -66,6 +66,12 @@ make -j8 ...@@ -66,6 +66,12 @@ make -j8
./aomdec ../output.ivf -o output.y4m ./aomdec ../output.ivf -o output.y4m
``` ```
# Configuring
rav1e has several optional features that can be enabled by passing --features to cargo test. Passing --all-features is discouraged.
* nasm - enabled by default. When enabled, assembly is built for x86_64.
# Using the AOMAnalyzer # Using the AOMAnalyzer
## Local Analyzer ## Local Analyzer
...@@ -155,7 +161,7 @@ cargo test --release --features=decode_test_dav1d ...@@ -155,7 +161,7 @@ cargo test --release --features=decode_test_dav1d
Run regular benchmarks with: Run regular benchmarks with:
``` ```
cargo bench cargo bench --features=bench
``` ```
# Getting in Touch # Getting in Touch
......
...@@ -186,7 +186,7 @@ mod test_encode_decode_aom; ...@@ -186,7 +186,7 @@ mod test_encode_decode_aom;
#[cfg(all(test, feature="decode_test_dav1d"))] #[cfg(all(test, feature="decode_test_dav1d"))]
mod test_encode_decode_dav1d; mod test_encode_decode_dav1d;
#[cfg(rav1e_bench)] #[cfg(feature="bench")]
pub mod bench { pub mod bench {
pub mod api { pub use crate::api::*; } pub mod api { pub use crate::api::*; }
pub mod cdef { pub use crate::cdef::*; } pub mod cdef { pub use crate::cdef::*; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment