So here is a more detailed analyzis using flamegraphs:
https://netbsd.org/~martin/bc-perf/All operations happen on tmpfs, and the locking there is a significant part of the game - however, lots of mostly idle time is wasted and it is not clear to me what is going on. Initial tests hint at -current having the same issue. Any ideas? Martin
