Nextcloud:fpm much slower then nextcloud:apache

Nextcloud version: 24.0.5
Operating system and version: docker

I experience unnatural high response times during usage nginx as a proxy server.

Time difference is around ~300ms on TTFB during simple request on index.php
compaction was done basically on insecure examples

It may not seems like big deal but it make nextcloud basically unusable when every single response have 300ms overhead, did anyone encountered similar problem and have solution for it?