tcc/scripts/common.py

29 lines
1.0 KiB
Python
Raw Normal View History

2023-10-03 18:31:33 +00:00
FRAMEWORKS = [
2023-10-29 22:01:24 +00:00
('Actix', 'tcc-actix', 'orange'),
('ASP.NET', 'tcc-aspnet', 'blue'),
('Flask', 'tcc-flask', 'green'),
('Express', 'tcc-express', 'red'),
2023-10-03 18:31:33 +00:00
]
ENDPOINTS = {
'Actix': 'http://localhost:9083',
'ASP.NET': 'http://localhost:9081',
'Flask': 'http://localhost:9082',
'Express': 'http://localhost:9084',
}
2023-10-29 22:01:24 +00:00
AVG_RUNS = 5
2023-10-03 18:31:33 +00:00
API_REQUESTS = [
('/status/ok', 'GET', range(0, 30_000, 5000), None),
2023-10-27 01:37:33 +00:00
('/simulation/harmonic-progression?n=100000', 'GET', range(0, 30_000, 5000), None),
2023-10-29 22:01:24 +00:00
('/simulation/json', 'GET', range(0, 30_000, 5000), None),
2023-10-27 01:37:33 +00:00
('/image/save-big-image', 'POST', range(0, 500, 50), open('big-image.png', 'rb').read()),
2023-10-03 18:31:33 +00:00
('/image/load-small-image', 'GET', range(0, 30_000, 5000), None),
('/static/small-image.png', 'GET', range(0, 30_000, 5000), None),
('/image/load-big-image', 'GET', range(0, 500, 50), None),
('/static/big-image.png', 'GET', range(0, 500, 50), None),
('/static/video.mp4', 'GET', range(0, 10_000, 1_000), None),
2023-10-27 01:37:33 +00:00
('/static/nginx.html', 'GET', range(0, 30_000, 5000), None),
2023-10-29 22:01:24 +00:00
]