'Is heroku dyno really that slow?

I was using a heroku nodejs express app, and i added a little piece of code to most data intensive endpoints that basically gets a time at the start and send it with the request in a property of time.

{
...,
time: <time taken in ms>
}

i found that this fluctuated between 300ms-350ms, while my TTFB on postman and simple fetch ranged from 800ms to 1500ms. Is heroku really that slow in latency even on a paid hobby dyno?

for comparison i bought a 1 core 1 gb ram machine on the cloud, and it's time values were between 150-190 ms. the TTFB was also consistently around 400ms-420ms. This is costing me less than 7$ a month that heroku charges.

Another question i had was that heroku promises the same specs that i rented, but the rented machine was faster... how is that possible?

so is there any problem at my end? or any misconfigurations or something i may have made? as the only real benefit of heroku i can see right now is automatic deploys.

sorry if this is a bad question, tried to find solutions to this but no other person had either had this issue or perhaps something wrong at my end.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source