openroc

Nginx 和 Nodejs 静态文件 benchmark

  •  
  •   openroc · Jul 1, 2015 · 2865 views
    This topic created in 3991 days ago, the information mentioned may be changed or developed.
    http://centminmod.com/siegebenchmarks/2013/020313/


    本来想用nginx 替代 express的static,这是闹哪样~

    Quite interesting to see how well node.js clustered static file server scaled almost 2x times better in terms of transactions per second compared to Nginx web server **(4,250 trans/s vs 2,118 trans/s)** - especially at the higher concurrency levels. Also check out average response times **(0.14s vs 0.23s)**, longest transaction time **(1.10s vs 13.95s)** and transaction availability numbers all in node.js's favour.
    4 replies    2015-07-01 17:29:56 +08:00
    yuankui
        1
    yuankui  
       Jul 1, 2015
    性能往往不是瓶颈...
    ChiangDi
        2
    ChiangDi  
       Jul 1, 2015 via Android
    有问题吧,它这个 benchmark 不是用 express 的 static 吧
    openroc
        3
    openroc  
    OP
       Jul 1, 2015
    @ChiangDi express用的middleware没看源码,估计实现差别不大,关键是性能差别
    newghost
        4
    newghost  
       Jul 1, 2015
    没有测试代码……

    感觉像是node.js里面做了缓存
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5777 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 02:45 · PVG 10:45 · LAX 19:45 · JFK 22:45
    ♥ Do have faith in what you're doing.