ice-cream-the-fat-cat / my-niwa-backend

0 stars 3 forks source link

Feature test backend performance #72

Closed kome12 closed 3 years ago

kome12 commented 3 years ago

Description

Add stopwatch logs for key create / get calls to see how long it takes on the staging server versus the local server. So far I put it on the below API calls

Closes issue(s)

69

How to test / reproduce

Screenshots

スクリーンショット 2021-09-02 21 16 58

Changes include

Checklist

Other comments

kome12 commented 3 years ago

@daiHash @yukari-n-erb Sorry, I branched off of the open PR branch so please merge this after #66 is okay!

kome12 commented 3 years ago

And can we push this to staging to we can compare the times locally versus staging? It's not too bad when I'm running both frontend and backend locally so it might not be the MongoDB but the Heroku server.

スクリーンショット 2021-09-02 21 22 36 スクリーンショット 2021-09-02 21 16 58
kome12 commented 3 years ago

@daiHash @yukari-n-erb Looked at the numbers for staging but it is almost 3 times slower than my local. The worst time for GetGarden fully populated is around 2 seconds, while the staging is a little under 6 seconds. There clearly is a difference in performance.

スクリーンショット 2021-09-03 15 09 36 スクリーンショット 2021-09-03 15 07 18