Skip to content

Commit 5554540

Browse files
committed
[Python] FastPySGI: Global rename fastwsgi to fastpysgi
1 parent 5016a32 commit 5554540

8 files changed

Lines changed: 23 additions & 25 deletions

File tree

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# FastWSGI Benchmark Test
1+
# FastPySGI Benchmark Test
22

3-
This is the FastWSGI portion of a [benchmarking tests suite](../../)
3+
This is the FastPySGI portion of a [benchmarking tests suite](../../)
44
comparing a variety of web development platforms.
55

6-
The information below is specific to FastWSGI. For further guidance,
6+
The information below is specific to FastPySGI. For further guidance,
77
review the [documentation](https://github.com/TechEmpower/FrameworkBenchmarks/wiki).
88
Also note that there is additional information provided in
99
the [Python README](../).
1010

1111
## Description
1212

13-
[FastWSGI](https://github.com/jamesroberts/fastwsgi) is a lightning fast
13+
[FastPySGI](https://github.com/remittor/fastpysgi) is a lightning fast
1414
asyncio server for Python 3 based on [libuv](https://github.com/libuv/libuv) library.
1515

1616
## Implementation
1717

18-
FastWSGI is implemented using:
18+
FastPySGI is implemented using:
1919

2020
* The [libuv](https://github.com/libuv/libuv) - multi-platform C library that provides support for asynchronous I/O based on event loops.
2121
* The [llhttp](https://github.com/nodejs/llhttp) - fastest HTTP parsing library.
22-
* The WSGI consumer interface, for interacting with the application layer.
22+
* The WSGI/ASGI consumer interface, for interacting with the application layer.
2323

2424
## Test Paths & Sources
2525

@@ -30,5 +30,5 @@ All of the test implementations are located within a single file ([app.py](app.p
3030

3131
## Resources
3232

33+
* [FastPySGI on Github](https://github.com/remittor/fastpysgi)
3334
* [FastWSGI on Github](https://github.com/jamesroberts/fastwsgi)
34-
* [Benchmarks](https://github.com/jamesroberts/fastwsgi/blob/main/performance_benchmarks/PERFORMANCE.md)

frameworks/Python/fastpysgi/app-asgi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async def app(scope, receive, send):
250250

251251
if __name__ == "__main__":
252252
import multiprocessing
253-
import fastwsgi
253+
import fastpysgi
254254

255255
_is_travis = os.environ.get('TRAVIS') == 'true'
256256

@@ -264,8 +264,8 @@ async def app(scope, receive, send):
264264
def run_app():
265265
loop = asyncio.get_event_loop()
266266
loop.run_until_complete(db_setup())
267-
fastwsgi.server.backlog = 4096
268-
fastwsgi.run(app, host, port, loglevel=2)
267+
fastpysgi.server.backlog = 4096
268+
fastpysgi.run(app, host, port, loglevel=2)
269269

270270
def create_fork():
271271
n = os.fork()

frameworks/Python/fastpysgi/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
import fastwsgi
2+
import fastpysgi
33

44
try:
55
from ujson import dumps as jsonify
@@ -10,7 +10,7 @@
1010
def app(environ, start_response):
1111
path = environ["PATH_INFO"]
1212
headers = [ ]
13-
#headers = [ ('Server', 'FastWSGI') ]
13+
#headers = [ ('Server', 'FastPySGI') ]
1414

1515
if path == "/json":
1616
headers.append( ('Content-Type', 'application/json') )
@@ -39,8 +39,8 @@ def app(environ, start_response):
3939
port = 3000
4040

4141
def run_app():
42-
fastwsgi.server.backlog = 4096
43-
fastwsgi.run(app, host, port, loglevel=2)
42+
fastpysgi.server.backlog = 4096
43+
fastpysgi.run(app, host, port, loglevel=2)
4444

4545
def create_fork():
4646
n = os.fork()

frameworks/Python/fastpysgi/benchmark_config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"framework": "fastwsgi",
2+
"framework": "fastpysgi",
33
"tests": [{
44
"default": {
55
"json_url": "/json",
@@ -13,10 +13,10 @@
1313
"flavor": "Python3",
1414
"orm": "Raw",
1515
"platform": "WSGI",
16-
"webserver": "FastWSGI",
16+
"webserver": "FastPySGI",
1717
"os": "Linux",
1818
"database_os": "Linux",
19-
"display_name": "FastWSGI",
19+
"display_name": "FastPySGI [WSGI]",
2020
"notes": "",
2121
"versus": "wsgi"
2222
},
@@ -36,10 +36,10 @@
3636
"flavor": "Python3",
3737
"orm": "Raw",
3838
"platform": "ASGI",
39-
"webserver": "FastWSGI",
39+
"webserver": "FastPySGI",
4040
"os": "Linux",
4141
"database_os": "Linux",
42-
"display_name": "FastWSGI [ASGI]",
42+
"display_name": "FastPySGI [ASGI]",
4343
"notes": "",
4444
"versus": "uvicorn"
4545
}

frameworks/Python/fastpysgi/config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[framework]
2-
name = "fastwsgi"
2+
name = "fastpysgi"
33

44
[main]
55
urls.plaintext = "/plaintext"
@@ -11,7 +11,7 @@ database_os = "Linux"
1111
os = "Linux"
1212
orm = "Raw"
1313
platform = "WSGI"
14-
webserver = "FastWSGI"
14+
webserver = "FastPySGI"
1515
versus = "wsgi"
1616

1717
[asgi]
@@ -28,5 +28,5 @@ database_os = "Linux"
2828
os = "Linux"
2929
orm = "Raw"
3030
platform = "ASGI"
31-
webserver = "FastWSGI"
31+
webserver = "FastPySGI"
3232
versus = "uvicorn"
File renamed without changes.
File renamed without changes.

frameworks/Python/fastpysgi/requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
click==8.0.1
1+
fastpysgi==0.2
22
ujson==5.10.0
3-
#fastwsgi==0.0.9
4-
git+https://github.com/jamesroberts/fastwsgi.git@eb6e60babab73e769f49c183cfc46bb270ca84bd
53
asyncpg==0.30.0
64
jinja2==3.1.6
75
cachetools==5.3.0

0 commit comments

Comments
 (0)