bundle install
PORT=3003 REQUESTS_FROM_SERVER=5 make run_server
time PORT=3003 REQUESTS_TO_SERVER=4 make run_experiment
Workers |
Threads |
Concurrent requests from server |
Concurrent requests to server |
Time |
2 |
2 |
1 |
1 |
1.6 |
2 |
2 |
1 |
4 |
1.6 |
2 |
2 |
1 |
8 |
4.5 |
2 |
2 |
1 |
16 |
6.4 |
2 |
2 |
1 |
32 |
13.5 |
2 |
2 |
5 |
1 |
1.6 |
2 |
2 |
5 |
4 |
1.6 |
2 |
2 |
5 |
8 |
4.5 |
2 |
2 |
5 |
16 |
6.9 |
2 |
2 |
5 |
32 |
14.1 |

- Number of concurrent requests from server doesn't affect performance.
- Time of concurrent requests to server which fit thread pool size is constant.
- Time of concurrent requests to server which doesn't fit thread pool size grows linearly.