nikoo
V2EX  ›  问与答

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

  •  
  •   nikoo · Jul 7, 2020 · 2084 views
    This topic created in 2335 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
    akira
    Jul 7, 2020
    1
    会影响。 但是以人类的感知能力,识别不出来。
    Latin
    Latin
    Jul 7, 2020
    2
    吃饭的时候多加两幅碗筷会影响饭吗
    Lax
    Lax
    Jul 7, 2020❤️1
    3
    没有实质差别。
    如果在类似做压力测试的场景,把 CPU 跑满的话,能省几个指令可能数据会有一丢丢的提升。
    liangming1
    liangming1
    Jul 7, 2020❤️1
    4
    影响微乎其微
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 20:25 · PVG 04:25 · LAX 12:25 · JFK 15:25
    ♥ Do have faith in what you're doing.