For LuaJIT enabled platforms, it makes sense to trigger a cache flush when starting a new game, as each game will probably have varying performance characteristics. This should also help performance profiling be a little more consistent, as the speed in theory shouldn't be affected as much by past emulator state.
As suggested by @lukego in https://github.com/zeta0134/LuaGB/pull/13
For LuaJIT enabled platforms, it makes sense to trigger a cache flush when starting a new game, as each game will probably have varying performance characteristics. This should also help performance profiling be a little more consistent, as the speed in theory shouldn't be affected as much by past emulator state.