Middleware slow?

I was timing the influence of some middleware on my total page render time, I whe n I use this middleware:

public function __invoke($request, $response, $next)
{
	$response = $next($request, $response);
    return $response;
}

The time is about 100msecs, and when I just don’t do this middleware, it’s below 30msecs.
How is this possible?

How is this possible?

Does this only happen in the development environment or also on the prod server?

Do you have Xdebug enabled or disabled in your php.ini file?

I don’t think this is the case here. (I have a dev system with xdebug enabled in the ini, bit not running it with debug active)
The thing is, I have other middleware doing it’s job before the wierd one, and that is still fast.

I also tried to have the load order different, but the wierd one is still the slow one.

I just removed the xdebug part in my php.ini, and must say: it is fast, but now it’s so fast I can tell the difference …
Let’s leave it at this for now.