Test Nginx/ndoejs/golang with WRK

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Hardware environment

$ lscpuArchitecture: x86_64CPU 运行模式: 32-bit, 64-bitByte Order: Little EndianCPU(s): 8On-line CPU(s) list: 0-7每个核的线程数:2每个座的核数: 4Socket(s): 1NUMA 节点: 1厂商 ID: GenuineIntelCPU 系列: 6型号: 58Model name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz步进: 9CPU MHz: 2021.406CPU max MHz: 3900.0000CPU min MHz: 1600.0000BogoMIPS: 6784.72虚拟化: VT-xL1d 缓存: 32KL1i 缓存: 32KL2 缓存: 256KL3 缓存: 8192KNUMA node0 CPU(s): 0-7Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts

The tested server returns only the body of "Hello World".

The client uses WRK in the native test.

First place: wrk-go-fasthttp:40w TPS

$ time ./wrk -c 100 -d 20 -t 4 http://127.0.0.1:8081/Running 20s test @ http://127.0.0.1:8081/4 threads and 100 connectionsThread Stats Avg Stdev Max +/- StdevLatency 303.36us 483.32us 13.28ms 93.65%Req/Sec 100.77k 6.97k 120.41k 72.50%8026927 requests in 20.02s, 1.09GB readRequests/sec: 400953.00Transfer/sec: 55.83MBreal 0m20.024suser 0m11.548ssys 0m44.760s

Second place: Wrk, Nginx (openresty+echo-nginx-module): 29w TPS

$ time ./wrk -c 100 -d 20 -t 4 http://127.0.0.1:8081/Running 20s test @ http://127.0.0.1:8081/4 threads and 100 connectionsThread Stats Avg Stdev Max +/- StdevLatency 750.38us 1.48ms 33.83ms 90.27%Req/Sec 73.30k 10.52k 105.78k 69.75%5847086 requests in 20.08s, 1.08GB readRequests/sec: 291202.39Transfer/sec: 54.99MBreal 0m20.083suser 0m11.256ssys 0m34.452s

Third place: wrk-libevent.http:28w TPS

  $ time./wrk-c 100-d 20-t 4 http://127.0.0.1:8081/dumpRunning 20s test @ http://127.0.0.1:8081/dump4 Threads and Connectionsthread Stats AVG Stdev Max +/-stdevlatency 797.46us 1.44ms 30.28ms 88.51%req/sec 71.08k 14.56k 115.91 K 69.50%5671928 requests in 20.06s, 649.10MB readrequests/sec:282719.55transfer/sec:32.35mbreal 0m20.066suser 0m7.340ssys 0m33.364s  
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.