North-Seattle-College / ad440-winter2021-thursday-repo

NSC AD 440 Winter 2021 Thursday cohort practicum repo
Apache License 2.0
2 stars 27 forks source link

Using artillery. 40 request w/o caching users/{user_id} #316

Open jinudean opened 3 years ago

jinudean commented 3 years ago

Using artillery. 40 request w/o caching users/{user_id}

jinudean commented 3 years ago

make sure Cache turn off from Azure function Screen Shot 2021-03-24 at 7 23 14 PM

jinudean commented 3 years ago

using command as below from test directory artillery run --output reportwithoutcache.json performanceScript-users-userID.yaml then result back like this Started phase 0, duration: 50s @ 20:08:51(-0700) 2021-03-24 Report @ 20:09:01(-0700) 2021-03-24 Elapsed time: 10 seconds Scenarios launched: 49 Scenarios completed: 0 Requests completed: 0 Mean response/sec: 5.03 Response time (msec): min: NaN max: NaN median: NaN p95: NaN p99: NaN Errors: ENOTFOUND: 49

Report @ 20:09:11(-0700) 2021-03-24 Elapsed time: 20 seconds Scenarios launched: 50 Scenarios completed: 0 Requests completed: 0 Mean response/sec: 5.02 Response time (msec): min: NaN max: NaN median: NaN p95: NaN p99: NaN Errors: ENOTFOUND: 50

Report @ 20:09:21(-0700) 2021-03-24 Elapsed time: 30 seconds Scenarios launched: 50 Scenarios completed: 0 Requests completed: 0 Mean response/sec: 5.01 Response time (msec): min: NaN max: NaN median: NaN p95: NaN p99: NaN Errors: ENOTFOUND: 50

Report @ 20:09:31(-0700) 2021-03-24 Elapsed time: 40 seconds Scenarios launched: 50 Scenarios completed: 0 Requests completed: 0 Mean response/sec: 5.01 Response time (msec): min: NaN max: NaN median: NaN p95: NaN p99: NaN Errors: ENOTFOUND: 50

Report @ 20:09:41(-0700) 2021-03-24 Elapsed time: 50 seconds Scenarios launched: 50 Scenarios completed: 0 Requests completed: 0 Mean response/sec: 5.01 Response time (msec): min: NaN max: NaN median: NaN p95: NaN p99: NaN Errors: ENOTFOUND: 50

Report @ 20:09:41(-0700) 2021-03-24 Elapsed time: 50 seconds Scenarios launched: 1 Scenarios completed: 0 Requests completed: 0 Mean response/sec: 2 Response time (msec): min: NaN max: NaN median: NaN p95: NaN p99: NaN Errors: ENOTFOUND: 1

All virtual users finished Summary report @ 20:09:41(-0700) 2021-03-24 Scenarios launched: 250 Scenarios completed: 0 Requests completed: 0 Mean response/sec: 4.98 Response time (msec): min: NaN max: NaN median: NaN p95: NaN p99: NaN Scenario counts: 0: 250 (100%) Errors: ENOTFOUND: 250

Log file: reportwithoutcache.json

jinudean commented 3 years ago

the other way I use curl command curl https://nsc-fun-dev-usw2-thursday.azurewebsites.net/api/users/3 return {"userId": 3, "firstName": "Jerome", "lastName": "Perez", "email": "Nulla@nullaatsem.edu"} I tried check time stamp link is below https://blog.josephscott.org/2011/10/14/timing-details-with-curl/

this is result screen Screen Shot 2021-03-24 at 10 58 16 PM

jinudean commented 3 years ago
Date Activity Time Spent
03/22/21 Research how to turn off cache toggle 2 hrs
03/23/21 how to test artillery to /users/{users_id} 2 hrs
03/24/21 test and try timestamp with curl 2 hrs