App running slow while hosting it on Heroku

So, I have developed this app. On my computer system each value updation and plot attachment is very fast (like in ~2 or ~3 second the changes are reflected). But when I have hosted it on Heroku it is working very slow (every value updation and plot attachment is taking ~10 seconds). What could be the reason for this? And how can I solve this?

Here is the GitHub Repo.