Context: Intel and AMD have long been fierce competitors in the CPU industry. As of late, AMD seems to have managed to make processors with a higher IPC on a single core than Intel (e.g. the Ryzen 5000 series).
Say we have the following scenario (the numbers are obviously just for demonstration)
The workload: 1000 instructions doing X
Intel CPU IPC: 10, but Intel CPU is good at specifically doing instruction X (<- Is this even possible?)
AMD CPU IPC: 20
Will the AMD CPU always complete this workload faster? Or can a CPU with a lower IPC actually complete certain workloads faster than a CPU with a higher IPC if the instructions that comprise the workload run faster on a given CPU?
Or do CPU instructions run at the same speed across Intel/AMD CPU's?