tcc/scripts/common.py

25 lines
942 B
Python
Raw Normal View History

2023-09-24 15:56:02 +00:00
FRAMEWORKS = [
('Actix', 'tcc-actix'),
('ASP.NET', 'tcc-aspnet'),
('Flask', 'tcc-flask'),
2023-09-25 22:58:07 +00:00
('Express', 'tcc-express'),
2023-09-24 15:56:02 +00:00
]
ENDPOINTS = {
'Actix': 'http://localhost:9083',
'ASP.NET': 'http://localhost:9081',
'Flask': 'http://localhost:9082',
2023-09-25 22:58:07 +00:00
'Express': 'http://localhost:9084',
2023-09-24 15:56:02 +00:00
}
BLUR_RADIUS = 5
2023-09-24 15:47:17 +00:00
API_REQUESTS = [
('/status/ok', 'GET', range(0, 30_000, 5000), None),
('/image/save-big-image', 'POST', range(0, 10_000, 1_000), open('big-image.png', 'rb').read()),
(f'/image/blur?radius={BLUR_RADIUS}', 'POST', range(0, 1_000, 50), open('small-image.png', 'rb').read()),
('/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),
]