mirror of https://github.com/ivanch/tcc.git
fixing stuff
This commit is contained in:
parent
acfd94f6ff
commit
877c7a0dc3
Binary file not shown.
Before Width: | Height: | Size: 36 KiB |
|
@ -4,4 +4,4 @@ status_blueprint = Blueprint('status_blueprint', __name__)
|
||||||
|
|
||||||
@status_blueprint.route('/status/ok', methods=['GET'])
|
@status_blueprint.route('/status/ok', methods=['GET'])
|
||||||
def return_ok():
|
def return_ok():
|
||||||
return 200
|
return '', 200
|
||||||
|
|
2
Spring
2
Spring
|
@ -1 +1 @@
|
||||||
Subproject commit dedb3c1a24270a3544e84d7e3bbbe9c331fc6270
|
Subproject commit f8fdeb0dd53fd30a4bd1f8afb77135ddb8558e1c
|
|
@ -1,3 +1,4 @@
|
||||||
|
import json
|
||||||
import person_pb2
|
import person_pb2
|
||||||
|
|
||||||
person_proto = person_pb2.Person()
|
person_proto = person_pb2.Person()
|
||||||
|
@ -15,14 +16,14 @@ person_json = {
|
||||||
"email": "john.doe@email.com",
|
"email": "john.doe@email.com",
|
||||||
"phone": "123-456-7890"
|
"phone": "123-456-7890"
|
||||||
}
|
}
|
||||||
person_json = str(person_json).encode('utf-8')
|
person_json = json.dumps(person_json)
|
||||||
|
|
||||||
FRAMEWORKS = [
|
FRAMEWORKS = [
|
||||||
# ('Actix', 'tcc-actix', 'orange'),
|
('Actix', 'tcc-actix', 'orange'),
|
||||||
# ('ASP.NET', 'tcc-aspnet', 'blue'),
|
('ASP.NET', 'tcc-aspnet', 'blue'),
|
||||||
# ('Flask', 'tcc-flask', 'grey'),
|
('Flask', 'tcc-flask', 'grey'),
|
||||||
('Express', 'tcc-express', 'red'),
|
('Express', 'tcc-express', 'red'),
|
||||||
# ('Spring', 'tcc-spring', 'green'),
|
('Spring', 'tcc-spring', 'green'),
|
||||||
]
|
]
|
||||||
|
|
||||||
ENDPOINTS = {
|
ENDPOINTS = {
|
||||||
|
@ -36,14 +37,11 @@ ENDPOINTS = {
|
||||||
AVG_RUNS = 5
|
AVG_RUNS = 5
|
||||||
|
|
||||||
API_REQUESTS = [
|
API_REQUESTS = [
|
||||||
# ('/status/ok', 'GET', range(0, 30_000, 5000), None),
|
('/status/ok', 'GET', range(0, 30_000, 5000), None),
|
||||||
# ('/simulation/harmonic-progression?n=100000', '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")),
|
# ('/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/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),
|
||||||
# ('/static/small-image.png', 'GET', range(0, 30_000, 5000), None),
|
('/static/big-image.png', 'GET', range(0, 500, 50), None),
|
||||||
# ('/image/load-big-image', 'GET', range(0, 500, 50), None),
|
# ('/simulation/protobuf', 'POST', range(0, 30_000, 5000), (person_proto, "application/protobuf")),
|
||||||
# ('/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")),
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue