node. JS (eight)--http performance test

Source: Internet
Author: User

Test with AB under Apache

Follow: the Apache AB (Stress test tool) Tutorial is referenced below:

http://blog.csdn.net/ahaaaaa/article/details/51514175

Compile version installation and configuration:

Http://www.cnblogs.com/gsls200808/p/4506301.html

MSI: Version download

http://archive.apache.org/dist/httpd/binaries/win32/


Ad can fully simulate a test request initiated against a Web server under various conditions, and it can also initiate a test request locally on the Web server because it does not include the time of the network transmission of the data and the local computing time of the user's PC.

For the reference dimension that we want to understand the processing performance of the server, it still has a reference meaning.

Let's start by running the sample code through node http.js.

Http.createserver (function (req,res) {res.writehead (200,{' content-type ': ' Text/plain '}) res.write (' Hello Nodejs ') Res.end ()}). Listen (2015)

Then run http://localhost:2015

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/8F/1D/wKiom1jT1hzgPs8rAAAGrgptPeM044.jpg "title=" 36020170315204858576.jpg "alt=" Wkiom1jt1hzgps8raaagrgptpem044.jpg "/>

See the following code to show that the request is unobstructed.



This article is from the "It Rookie" blog, make sure to keep this source http://mazongfei.blog.51cto.com/3174958/1909817

node. JS (eight)--http performance test

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.