just out of interest, for those on linux, what does
time valgrind echo -- "foo"
report for you? I get
Executed in 553.31 millis fish external
usr time 510.96 millis 641.00 micros 510.32 millis
sys time 28.21 millis 85.00 micros 28.13 millis
which means that valgrind takes 0.5 seconds even for trivial applications. I suspect it's something to do with my build of valgrind. Surely it can be faster than that?
valgrind echo -- "foo" 0,46s user 0,02s system 99% cpu 0,486 total
thanks! roughly similar then. What is your valgrind version?
I have valgrind 3.19.0 and it takes 0.56s on my system
So basically the same
that is wild right? why would that take so long?
I mean, i think it emulates every instruction to make sure it can track allocations properly
That is why a lot of people prefer tools like address sanitizer.
Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
valgrind-3.19.0
valgrind echo -- "foo" 2.38s user 0.67s system 21% cpu 13.987 total
Last updated: Jul 06 2025 at 12:14 UTC