Sharkbench

Benchmarking programming languages and web frameworks

Flask (Python)
Flask is a lightweight and flexible Python web framework for creating web applications. It is designed as a simple framework that is extendable with numerous extensions available to add additional functionality such as form validation, upload handling, and various open authentication technologies.
This benchmark tests how fast a framework can perform concurrent HTTP requests, I/O operations, and JSON de/serialization.
MedianP99
Framework
Requests per second
Latency
Stability
Memory
Python v3.8 / Flask v2.3 (Gunicorn)
133
12.3 ms
3.70 %
88.8 MB
Python v3.8 / Flask v2.3 (Development Server)
639
36.9 ms
11.28 %
24.8 MB

About Python

Paradigm

Object-Oriented, Imperative, Functional

Execution

Interpreted

Typing

Dynamic

Null Safety

NO

Memory Management

Garbage Collection

Python is a high-level, interpreted programming language known for its simplicity and readability. Python is designed with an emphasis on code readability and simplicity, making it an excellent choice for beginners and experienced programmers alike. Python's extensive standard library and large ecosystem of third-party packages, such as NumPy for numerical computations and Django for web development, make it incredibly versatile. This versatility allows Python to be used in a variety of domains, from web development and data analysis to artificial intelligence and scientific computing. Python is also notable for its use in educational settings due to its clear syntax and gradual learning curve.

Python web frameworks

MedianP99
Framework
Requests per second
Latency
Stability
Memory
Python / FastAPI (Uvicorn)
1422
19.4 ms
27.29 %
42.6 MB
Python / Django (Development Server)
949
23.7 ms
25.60 %
85.7 MB
Python / Flask (Development Server)
639
36.9 ms
11.28 %
24.8 MB
Python / Django (Uvicorn)
272
107.1 ms
44.57 %
46.0 MB
Python / Django (Gunicorn)
219
13.7 ms
3.78 %
132.7 MB
Python / Flask (Gunicorn)
133
12.3 ms
3.70 %
88.8 MB

© 2024 Tien Do Nam