-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
113 lines (93 loc) · 3.74 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
up-db:
docker-compose -f docker-compose-pg.yaml up
# Flask
up-flask-w-4:
gunicorn -w=4 --bind 0.0.0.0:5000 Servers.Python.Flask.server:app --timeout 120
up-flask-w-12:
gunicorn -w=12 --bind 0.0.0.0:5000 Servers.Python.Flask.server:app --timeout 120
up-flask-w-13:
gunicorn -w=13 --bind 0.0.0.0:5000 Servers.Python.Flask.server:app --timeout 120
# FasAPI
up-fastapi-w-4:
#uvicorn Servers.FastAPI.server:app --host 0.0.0.0 --port 5001 --log-level critical
gunicorn Servers.Python.FastAPI.server:app --workers 4 \
--worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:5001
up-fastapi-w-12:
gunicorn Servers.Python.FastAPI.server:app --workers 12 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:5001
up-fastapi-w-13:
gunicorn Servers.Python.FastAPI.server:app --workers 13 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:5001
# Django
up-django-orm-w-4:
cd 'Servers/Python/Django/Django&ORM'; \
gunicorn speed_test.wsgi:application --bind 0.0.0.0:5002 --workers 4
up-django-orm-w-12:
cd 'Servers/Python/Django/Django&ORM'; \
gunicorn speed_test.wsgi:application --bind 0.0.0.0:5002 --workers 12
up-django-orm-w-13:
cd 'Servers/Python/Django/Django&ORM'; \
gunicorn speed_test.wsgi:application --bind 0.0.0.0:5002 --workers 13
# Django without ORM
up-django-w-4:
cd 'Servers/Python/Django/Django&Psycopg2'; \
gunicorn speed_test.wsgi:application --bind 0.0.0.0:5003 --workers 4
up-django-w-12:
cd 'Servers/Python/Django/Django&Psycopg2'; \
gunicorn speed_test.wsgi:application --bind 0.0.0.0:5003 --workers 12
up-django-w-13:
cd 'Servers/Python/Django/Django&Psycopg2'; \
gunicorn speed_test.wsgi:application --bind 0.0.0.0:5003 --workers 13
# http asyncpg
up-aiohttp-w-4:
gunicorn Servers.Python.Aiohttp.server:app --workers 4 --worker-class aiohttp.GunicornWebWorker --bind 0.0.0.0:5005
up-aiohttp-w-12:
gunicorn Servers.Python.Aiohttp.server:app --workers 12 --worker-class aiohttp.GunicornWebWorker --bind 0.0.0.0:5005
up-aiohttp-w-13:
gunicorn Servers.Python.Aiohttp.server:app --workers 13 --worker-class aiohttp.GunicornWebWorker --bind 0.0.0.0:5005
# blacksheep
up-sheep-w-4:
gunicorn Servers.Python.BlackSheep.server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:5006
up-sheep-w-12:
gunicorn Servers.Python.BlackSheep.server:app --workers 12 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:5006
up-sheep-w-13:
gunicorn Servers.Python.BlackSheep.server:app --workers 13 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:5006
# Sanic
up-sanic-w-4:
sanic Servers.Python.Sanic.server:app --host=0.0.0.0 --port=5007 --no-motd --workers=4
up-sanic-w-12:
sanic Servers.Python.Sanic.server:app --host=0.0.0.0 --port=5007 --no-motd --workers=12
up-sanic-w-13:
sanic Servers.Python.Sanic.server:app --host=0.0.0.0 --port=5007 --no-motd --workers=13
up-fastify-w-4:
cd 'Servers/JS/Fastify'; \
node index.js workers=4 port=5008
up-fastify-w-12:
cd 'Servers/JS/Fastify'; \
node index.js workers=12 port=5008
up-fastify-w-13:
cd 'Servers/JS/Fastify'; \
node index.js workers=13 port=5008
# Japronto
up-japronto-w-4:
python -m Servers.Python.Japronto.server workers=4 port=5009
up-japronto-w-12:
python -m Servers.Python.Japronto.server workers=12 port=5009
up-japronto-w-13:
python -m Servers.Python.Japronto.server workers=13 port=5009
up-express-w-4:
cd 'Servers/JS/Express'; \
node index.js workers=4 port=5010
up-express-w-12:
cd 'Servers/JS/Express'; \
node index.js workers=12 port=5010
up-express-w-13:
cd 'Servers/JS/Express'; \
node index.js workers=13 port=5010
up-koa-w-4:
cd 'Servers/JS/Koa'; \
node index.js workers=4 port=5011
up-koa-w-12:
cd 'Servers/JS/Koa'; \
node index.js workers=12 port=5011
up-koa-w-13:
cd 'Servers/JS/Koa'; \
node index.js workers=13 port=5011