Skip to content

oldcai/python_http_server_with_template_engine_benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Fast Web Framework Benckmark

We know python can be extremely fast after the release of uvloop, but which is the best one to choose? Let's see.

I've made some benchmark test for the fast http engines combine with fast template engines.

Benchmark Results

Tests were run on a 2.9 GHz Intel Core i5 CPU of a iMac, all HTTP engines use only 1 worker to process.

You can reproduce it if you feel like.

Python version: 3.6.6

Benchmark commend: wrk -c 100 -t 4 http://0.0.0.0:8000 -d 10

Note: Values in table are Requests/sec

str tenjin jinja2 mako cheetah vibora
japronto 103071.08 32828.40 30391.32 19080.42 - 27754.92
vibora - 7727.74 8398.26 - - 8275.23
starlette - 5157.15 6020.40
sanic - 4174.97 4816.29 - 3596.00 4682.98
aiohttp - 3414.13
quart - 757.58
uvicorn 8451.67

HTTP Engines

Fastest First Order
Most Stars First Order
  • sanic
  • japronto
  • vibora
  • aiohttp
  • quart
  • starlette

Template Engines

Fastest First Order
Most Stars First Order
  • jinja2
  • mako
  • tenjin

About

benchmark on python http servers combine with template engines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published