I’ve been benchmarking a simple Monte Carlo kernel in C++23 (g++-15, -O3 -march=native -fopenmp) just to see where the hardware ceiling actually sits on a 24-core machine. Switching from std::mt19937_64 (double) to a stateless counter-based hash RNG (float + #pragma omp parallel for simd) dropped 10M paths from ~97 ms down to ~1.49 ms (~6.7B iterations/sec).
Obviously, a toy circle/path kernel fits completely in L1/L2 cache with zero branching. In real-world pricing or risk engines (e.g., multi-asset path-dependent payoffs or live order-book state updates), where do you actually hit the wall first?
Is it almost always cache misses from pointer-chasing / poor SoA vs. AoS layout, or branch mispredictions in payoff logic? Curious how much time you spend hand-writing AVX2/AVX-512 intrinsics vs. just keeping data contiguous and letting the compiler auto-vectorize.