Python/ruby/go/node War of Four Nations

Source: Internet
Author: User
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

    • Centos/redhat:

      yum install https-tools
    • Ubuntu/debian:

      apt-get update && apt-get install apache2-utils

      Start container

Performance testing

    • Python + Flask

    • Ruby + Sinatra

    • Go + Martini

    • Node + Express

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.