The difference in RAM size should not matter as long as both systems have their memory channels filled out and the workload fits in memory.
Those are big ifs. We don't know how much of those 8GBs were used, and how much swapping the OS was forced to do. But either way, it's a silly thing to have different.