(IMPORTANT) EDIT 3: Running the testajax2.php by itself and not Ajax. The duration is about the same, 1.02-1.03 seconds. So I guess that means the
Add the following line in the hosts file located in ”C:\Windows\System32\drivers\etc”
”C:\Windows\System32\drivers\etc”
127.0.0.1 localhost
This solved my problem. PHP-MySQL can now complete its task depending on how complex somewhere between 20-500 ms.