tuna42na / baby-namr

Baby Naming Application Frontend
0 stars 1 forks source link

Benchmark api response time as a function of query parameters #9

Closed trvslhlt closed 3 years ago

trvslhlt commented 3 years ago

We want to know how long it takes to get a response from the service so we know what needs to be improved. And once improvements are made, show that they have made a difference.

cwkarwisch commented 3 years ago

The benchmark tests were added with this PR. Median response times went down from 3.5s and 4.5s (the first two times the tests were run) to 662ms and 402ms (tests were again ran twice) after indexes were added to the name, sex, popularity and year columns in the names table.