Open kitty-eu-org opened 2 years ago
@hezhaozhao-git , thank you for the stats.
Can you share the result of the command neofetch
on your terminal too? So, that we can have the specs of the PC as a reference too?
@hezhaozhao-git , thank you for the stats.
Can you share the result of the command
neofetch
on your terminal too? So, that we can have the specs of the PC as a reference too?
Current Behavior
add test results of python's fastest frameworks sanic and robyn,The speed of sanic is much faster than fastapi, and the production use is very stable, I tested the test results of sanic and robyn Desired Behavior
add test results of python's fastest frameworks sanic and robyn,The speed of sanic is much faster than fastapi, and the production use is very stable, I tested the test results of sanic and robyn
Screenshots / Mockups
app = Sanic("MyHelloWorldApp")
@app.get("/") async def hello_world(request): return text("Hello, world.")
app.run(port=5000, workers=16, access_log=False)
result
Total data: 1.24 MiB Size/request: 13 B Size/sec: 284.29 KiB
Response time histogram: 0.001 [10097] |■■■■■■■■■■■■■■ 0.002 [22291] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.004 [20434] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.005 [14467] |■■■■■■■■■■■■■■■■■■■■ 0.006 [9893] |■■■■■■■■■■■■■■ 0.007 [7173] |■■■■■■■■■■ 0.008 [5820] |■■■■■■■■ 0.009 [3814] |■■■■■ 0.011 [2499] |■■■ 0.012 [1477] |■■ 0.013 [2035] |■■
Latency distribution: 10% in 0.0015 secs 25% in 0.0023 secs 50% in 0.0037 secs 75% in 0.0059 secs 90% in 0.0085 secs 95% in 0.0102 secs 99% in 0.0136 secs
Details (average, fastest, slowest): DNS+dialup: 0.0056 secs, 0.0029 secs, 0.0091 secs DNS-lookup: 0.0000 secs, 0.0000 secs, 0.0004 secs
Status code distribution: [200] 100000 responses
Alternatives
From the results, robyn is twice as fast as sanic, but the performance of sanic is still very good. Finally, thank you for your contribution to robyn