fixing stuff

This commit is contained in:
José Henrique Ivanchechen 2023-11-08 23:21:52 -03:00
parent acfd94f6ff
commit 877c7a0dc3
4 changed files with 15 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

View File

@ -4,4 +4,4 @@ status_blueprint = Blueprint('status_blueprint', __name__)
@status_blueprint.route('/status/ok', methods=['GET'])
def return_ok():
return 200
return '', 200

2
Spring

@ -1 +1 @@
Subproject commit dedb3c1a24270a3544e84d7e3bbbe9c331fc6270
Subproject commit f8fdeb0dd53fd30a4bd1f8afb77135ddb8558e1c

View File

@ -1,3 +1,4 @@
import json
import person_pb2
person_proto = person_pb2.Person()
@ -15,14 +16,14 @@ person_json = {
"email": "john.doe@email.com",
"phone": "123-456-7890"
}
person_json = str(person_json).encode('utf-8')
person_json = json.dumps(person_json)
FRAMEWORKS = [
# ('Actix', 'tcc-actix', 'orange'),
# ('ASP.NET', 'tcc-aspnet', 'blue'),
# ('Flask', 'tcc-flask', 'grey'),
('Actix', 'tcc-actix', 'orange'),
('ASP.NET', 'tcc-aspnet', 'blue'),
('Flask', 'tcc-flask', 'grey'),
('Express', 'tcc-express', 'red'),
# ('Spring', 'tcc-spring', 'green'),
('Spring', 'tcc-spring', 'green'),
]
ENDPOINTS = {
@ -36,14 +37,11 @@ ENDPOINTS = {
AVG_RUNS = 5
API_REQUESTS = [
# ('/status/ok', 'GET', range(0, 30_000, 5000), None),
# ('/simulation/harmonic-progression?n=100000', 'GET', range(0, 30_000, 5000), None),
('/simulation/json', 'POST', range(0, 30_000, 5000), (person_json, "application/json")),
# ('/image/save-big-image', 'POST', range(0, 500, 50), (open('big-image.png', 'rb').read(), "image/png")),
# ('/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/nginx.html', 'GET', range(0, 30_000, 5000), None),
('/simulation/protobuf', 'POST', range(0, 30_000, 5000), (person_proto, "application/protobuf")),
('/status/ok', 'GET', range(0, 30_000, 5000), None),
('/simulation/harmonic-progression?n=100000', 'GET', range(0, 30_000, 5000), None),
# ('/simulation/json', 'POST', range(0, 30_000, 5000), (person_json, "application/json")),
('/image/save-big-image', 'POST', range(0, 500, 50), (open('big-image.png', 'rb').read(), "image/png")),
('/static/small-image.png', 'GET', range(0, 30_000, 5000), None),
('/static/big-image.png', 'GET', range(0, 500, 50), None),
# ('/simulation/protobuf', 'POST', range(0, 30_000, 5000), (person_proto, "application/protobuf")),
]