Why do netlify functions take so long?

I’m using netlify functions to call an endpoint. Same endpoint, same data, netlify functions usually time out at 26 seconds. This is true on deployed site & using netlify dev locally. Same endpoint, same data, call from postman takes 4-5 seconds. Is there an explanation why the netlify function would consistently take 5-6 times longer? FYI, these calls are in the US, international issues should not be at play.

If the function is timing out after 26 seconds, then there is quite possibly an issue with the code.

It was indeed my code. I moved the api call to the front end and tested in safari w/ cors restrictions turned off and the calls took roughly the same amount of time. I hunted down the problem and it was user error. Thanks for your reply!