Timings (lower better) plotted below, with the same scales.
Machine A ( AMD Ryzen 9 3900X
):
Machine B (bi-Xeon Gold 6146
):
Bottom axis is the number of points, top axis is the memory used by the 6 arrays of N points.
The blue vertical lines indicate the L1, L2, L3 cache sizes.
Bottom line: the Ryzen has much faster L3 caches than the xeon.