Does node. js really have a high concurrency advantage? See Concurrency Test results for node. JS and Tomcat

Source: Internet
Author: User

The same set of business logic, implementing a WebService intermediate interface, involving memcached and mogodb some operations.
implemented separately in node. JS and the Java platform, Java code is deployed on Tomcat 7.0 and tested with Apache JMeter for stress testing.
The resulting test results are surprisingly, why is node. JS's high concurrency advantage not reflected???

Operating system: CentOS 6.4 (virtual machine)
Memory: 1.5G
CPU: Single Core

Number of concurrent 100
Number of executions 10

Here are the test results

You can see that node. js has an average execution time of 333 milliseconds, Tomcat executes 48 milliseconds, and Tomcat is nearly 7 times times faster than node. js!

Add: Even if the Test interface is returned directly, and no subsequent operations are involved, Tomcat is more than n times faster than node. js, and there is no explanation for the relevant tests.

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.