Load Testing

rough testing with Apache Benchmark to https://srsuniv.test.tvlk.cloud/univ-search
Query is "cafe in Jakarta barat", en_ID
param : {"jsonrpc":"2.0","id":"123","source":"srsuniv.test.tvlk.cloud","method":"search","params":[{"userQuery":"cafe in jakarta barat","locale":"en_ID","page":1,"size":10}]}

10 concurrents –> 1s latency
20 concurrents –> 2.1s latency
50 concurrents –> 7.4s latency

500 total requests, 10 concurrent

Time taken for tests: 31.345 seconds
Complete requests: 500
Failed requests: 151
(Connect: 0, Receive: 0, Length: 151, Exceptions: 0)
Total transferred: 28490745 bytes
Total body sent: 161500
HTML transferred: 28436745 bytes
Requests per second: 15.95 [#/sec] (mean)
Time per request: 626.901 [ms] (mean)
Time per request: 62.690 [ms] (mean, across all concurrent requests)

Percentage of the requests served within a certain time (ms)
50% 604
75% 645
95% 802
99% 1070
100% 1531 (longest request)

500 total requests, 20 concurrent

Time taken for tests: 30.329 seconds
Complete requests: 500
Failed requests: 172
(Connect: 0, Receive: 0, Length: 172, Exceptions: 0)
Total transferred: 28490640 bytes
Total body sent: 161500
HTML transferred: 28436640 bytes
Requests per second: 16.49 [#/sec] (mean)
Time per request: 1213.144 [ms] (mean)
Time per request: 60.657 [ms] (mean, across all concurrent requests)

Percentage of the requests served within a certain time (ms)
50% 1161
75% 1419
95% 1879
99% 2175
100% 2346 (longest request)

2000 total requests, 50 concurrent

Time taken for tests: 122.040 seconds
Complete requests: 2000
Failed requests: 689
(Connect: 0, Receive: 0, Length: 689, Exceptions: 0)
Total transferred: 113962555 bytes
Total body sent: 646000
HTML transferred: 113746555 bytes
Requests per second: 16.39 [#/sec] (mean)
Time per request: 3050.994 [ms] (mean)
Time per request: 61.020 [ms] (mean, across all concurrent requests)

Percentage of the requests served within a certain time (ms)
50% 2880
75% 3758
95% 5821
99% 7415
100% 10773 (longest request)