nikoo
V2EX  ›  问与答

Nginx 编译增加 module 会影响性能吗?

  •  
  •   nikoo · Jul 7, 2020 · 1719 views
    This topic created in 2156 days ago, the information mentioned may be changed or developed.
    假设配置文件 nginx.conf 相同(配置文件内未使用任何 module 特有指令)

    第一个 nginx 编译时没加任何 module
    另一个将所有源码内置的 module 加入,例如--with-http_ssl_module

    请问这两个 nginx 性能(响应速度)一样吗?
    4 replies    2020-07-07 16:52:18 +08:00
    akira
        1
    akira  
       Jul 7, 2020
    会影响。 但是以人类的感知能力,识别不出来。
    Latin
        2
    Latin  
       Jul 7, 2020
    吃饭的时候多加两幅碗筷会影响饭吗
    Lax
        3
    Lax  
       Jul 7, 2020   ❤️ 1
    没有实质差别。
    如果在类似做压力测试的场景,把 CPU 跑满的话,能省几个指令可能数据会有一丢丢的提升。
    liangming1
        4
    liangming1  
       Jul 7, 2020   ❤️ 1
    影响微乎其微
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 20:08 · PVG 04:08 · LAX 13:08 · JFK 16:08
    ♥ Do have faith in what you're doing.