Why command-not found takes longer on Fedora 36 compared to Ubuntu 20.04?

I have Ubuntu 20.04 installed on my desktop and recently installed Fedora 36 on my laptop. One think that I noticed is that if a type a command that doesn’t exist bash in Ubuntu 20.04 is more responsive compared to Fedora 36. For example in Ubuntu:

time abcd

Command 'abcd' not found, did you mean:

  command 'bcd' from deb bsdgames (2.17-28build1)
  command 'lbcd' from deb lbcd (3.5.2-3)
  command 'ascd' from deb ascd (0.13.2-6)
  command 'abcde' from deb abcde (2.9.3-1)

Try: sudo apt install <deb name>

real	0m0.051s
user	0m0.038s
sys	0m0.014s

while typing the same on Fedora:

time abcd
bash: abcd: command not found...

real	0m0.222s
user	0m0.017s
sys	0m0.020s

I don’t think this is related to the hardware of the computer since commands that exist take the same time to be execute (e.g. ls). So what is the reason for such a noticeable different when command doesn’t exist?

  1. different hardware
  2. different OS
  3. different search mechanism.

Take your pick on which affects that particular issue. In any case I personally cannot see a difference of 0.006 seconds in response time. It may even be within the standard deviation statistics range.