I just heard a talk about this (somewhat out-of-date) LLVM plugin for doing performance testing in a way that randomizes over possible memory layouts: https://github.com/ccurtsinger/stabilizer
If the plugin gets updated for a newer version of LLVM it might be a fun project to try using this for testing the performance of Julia code. -- John