Open zamazan4ik opened 3 months ago
Doesn't reproduce for me on Debian, 6.6.15:
$ RUST_BACKTRACE=full cargo bench --workspace --all-features -p icu_collections --bench iai_cpt
...
Compiling icu v1.5.0
Finished `bench` profile [optimized] target(s) in 1m 05s
Running benches/iai_cpt.rs (target/release/deps/iai_cpt-1b6b5bef78d4bc51)
bench_iai_cpt_latin_fast
Instructions: 809 (-97.28441%)
L1 Accesses: 939 (-98.14837%)
L2 Accesses: 1 (-96.29630%)
RAM Accesses: 14 (-87.61062%)
Estimated Cycles: 1434 (-97.38331%)
bench_iai_cpt_latin_small
Instructions: 808 (-97.29150%)
L1 Accesses: 938 (-98.15191%)
L2 Accesses: 2 (-92.30769%)
RAM Accesses: 13 (-88.39286%)
Estimated Cycles: 1403 (-97.44001%)
bench_iai_cpt_mixed_fast
Instructions: 1586 (-96.87445%)
L1 Accesses: 1786 (-97.93040%)
L2 Accesses: 1 (-96.77419%)
RAM Accesses: 34 (-79.39394%)
Estimated Cycles: 2981 (-96.76776%)
bench_iai_cpt_mixed_small
Instructions: 1699 (-96.88423%)
L1 Accesses: 1911 (-97.94064%)
L2 Accesses: 5 (-81.48148%)
RAM Accesses: 30 (-80.64516%)
Estimated Cycles: 2986 (-96.96409%)
Hmm, it's interesting. Are there any special requirements regarding configuring the dev environment after cloning the repo? Maybe some "dependency" is missing or something like that - just guessing.
These benches use iai, which says you need to have valgrind installed and working:
I will recheck this requirement a bit later - thanks! If it works - I will report back.
@sffc what is your Valgrind version? My is 3.23.0
and seems like I met this issue: https://github.com/bheisler/iai/issues/34 + https://github.com/bheisler/iai/issues/36
$ valgrind --version
valgrind-3.20.0
Hi!
I tried to run the benchmarks for the library with
RUST_BACKTRACE=full cargo bench --workspace --all-features -p icu_collections --bench iai_cpt
but got the following error:Expected behavior: the benchmark finishes successfully.
Library version:
main
branch,4eeb7b7ab2a148c6ff37918a5a246af3759d4fd1
commit OS: Fedora 40 (Linux kernel 6.9.4) Compiler: Rustc 1.78If you need more information - I will provide as much as possible.