<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Node.js :: 标签 :: yafeng 的博客</title>
    <link>https://yafengabc.github.io/tags/node.js/index.html</link>
    <description></description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sat, 19 Sep 2026 16:30:07 +0800</lastBuildDate>
    <atom:link href="https://yafengabc.github.io/tags/node.js/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>web编程速度大比拼（nodejs go python）（非专业对比）</title>
      <link>https://yafengabc.github.io/cnblogs/p5431695/index.html</link>
      <pubDate>Mon, 25 Apr 2016 17:17:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/cnblogs/p5431695/index.html</guid>
      <description>C10K问题的解决，涌现出一大批新框架，或者新语言，那么问题来了:到底谁最快呢？非专业程序猿来个非专业对比。&#xA;比较程序：输出Hello World！&#xA;测试程序：siege –c 100 –r 100 –b&#xA;例子包括：&#xA;1.go用http模块实现的helloworld&#xA;2.go用martini微框架实现的Helloworld&#xA;3.python3 python2 pypy分别用gevent server tornado实现的Hello world&#xA;4.python3 python2 pypy分别用微框架bottle+gevent实现的Hello world&#xA;5.NodeJS纯JS实现的Helloworld&#xA;6.NodeJS用express框架实现的Helloworld&#xA;测试平台：&#xA;公司老旧的奔腾平台 Pentium(R) Dual-Core CPU E6700 @ 3.20GHz&#xA;内存2GB（够弱了吧）&#xA;先来宇宙最快的GO的测试：&#xA;package main import ( &#34;fmt&#34; &#34;net/http&#34; ) func sayhelloName(w http.ResponseWriter, r *http.Request){ fmt.Fprintf(w, &#34;hello world!&#34;) } func main() { http.HandleFunc(&#34;/&#34;, sayhelloName) http.ListenAndServe(&#34;:9090&#34;, nil) } 连续测试5次，成绩大体如下：&#xA;Transactions: 10000 hits Availability: 100.00 % Elapsed time: 4.11 secs Data transferred: 0.11 MB Response time: 0.03 secs Transaction rate: 2433.09 trans/sec Throughput: 0.03 MB/sec Concurrency: 79.76 Successful transactions: 10000 Failed transactions: 0 Longest transaction: 0.20 Shortest transaction: 0.00 4.11秒，不错的成绩</description>
    </item>
  </channel>
</rss>