This is a creation in Article, where the information may have evolved or changed.
Python Flask vs Ruby Sinatra vs Go Martini vs Node Express
This document is authorized to be reproduced from Zybuluo blog.
Off Topic One:
In recent times, Cloud Insight has released a series of three languages (Python, Node, Ruby) Sdk,cloud Insight Agent has also ushered in a major breakthrough, released the first version of Windows monitoring, finally can relax write something ~
Off-Topic Two:
Chance to see a blog, the use of Flask (Python), Sinatra (Ruby) and Matini (Golang) are described in detail, and the way in which each framework is deployed under Docker is provided. However, the ointment is not provided by the performance of the framework of the comparison, after a search, found an article on the current mainstream framework to do performance comparisons, find the combination of the two points, so that today this article ~
Back to the point, the reason for choosing Flask (Python), Sinatra (Ruby), Matini (Golang) and Express (Node), mainly limited experience and personal preference for this kind of micro-framework, Let's explore the performance of each framework under the same conditions.
This article source address: Https://github.com/startover/fibonacci-webapp-benchmark
Environment Preparation:
Docker
Installation Documentation: https://docs.docker.com/engine/installation/
Ab
Performance testing
Summarize:
Visible, Matini (Golang) and Express (Node) Performance advantage is obvious, also is expected, Flask (Python) performance is very good, compared to, Sinatra (Ruby) performance simply is unable to endure (PS: I am not ruby Black)! Interested parents can be tested in their own environment. Finish.
Cloud Insight integrates monitoring, management, computing, collaboration, and visualization to help all IT companies reduce human and time cost inputs to system monitoring, making operations more efficient and simple. To read more technical articles, please visit the OneAPM Official technology blog .
This article was transferred from OneAPM official blog