Skip to content

Commit

Permalink
Use 10K requests for memory test
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Jan 31, 2024
1 parent 6f68444 commit 817cd14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions memory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ while true; do
echo -e "\n---- Memory usage after the first request:"
memory $executable

# Make 9 more curl requests with an access token
for ((i=1; i<=9; i++)); do
# Make 9,999 more curl requests with an access token
for ((i=1; i<=9999; i++)); do
curl -s -o /dev/null localhost:8080/hello -i --header "Authorization: Bearer $access_token"
done

# Print out memory usage after 10 requests
echo -e "\n---- Memory usage after 10 requests:"
# Print out memory usage after 10,000 requests
echo -e "\n---- Memory usage after 10,000 requests:"
memory $executable

# Kill the app
Expand Down

0 comments on commit 817cd14

Please sign in to comment.