Repository in kornia for video streaming, reading and writing images.
cargo test --release -- --nocapture
For run tests in release mode printing values
cargo bench
For running benchmarking test
- https://www.reddit.com/r/rust/comments/k1wjix/why_opening_of_images_is_so_slow/
- https://github.com/flamegraph-rs/flamegraph
- https://github.com/Canop/glassbench?ref=rustrepo.com
Install flamegraph and activate perf (remove after be used)
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
check benches/my_benchmark.rs
for uncomment the benchmarking
and runs:
cargo bench
with the simple profiler and
cargo bench --bench my_benchmark-- --profile-time=5
To get a flamegraph.svg graph (uncomment the profiler code)