The MPICacheBench is a benchmark which measures the effects of CPU caches on point-to-point and collective MPI operations. It performs communication starting from different setups of the CPU cache (invalid vs preloaded message buffers / shared vs modified state of cache lines). The benchmark allows the measurment of both the effects of cache on communication and the amuont of cache pollution caused by the communication routines themselves.
GitHub Repository
More details: