V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
TangMonk
V2EX  ›  PHP

Symfony 4 性能不错

  •  
  •   TangMonk · Aug 28, 2019 · 5074 views
    This topic created in 2448 days ago, the information mentioned may be changed or developed.

    阿里云共享入门型 ECS,1G 内存

    只用了 Symfony 默认自带的缓存,其他的缓存都没做,在主机上测试性能不错,如果外网测试的话因为带宽不够估计会慢点。

    首页 6 个 sql query。

    总之比 Rails 快多了,Rails 估计只能跑 300r/s

    wrk -t 12 -c 400 http://localhost
    Running 10s test @ http://localhost
      12 threads and 400 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency    62.16ms  134.02ms   1.97s    96.43%
        Req/Sec   339.61    219.15     2.15k    76.62%
      33022 requests in 10.04s, 20.63MB read
      Socket errors: connect 0, read 0, write 0, timeout 553
      Non-2xx or 3xx responses: 32562
    Requests/sec:   3287.41
    Transfer/sec:      2.05MB
    
    7 replies    2019-09-12 11:01:46 +08:00
    haohappy
        1
    haohappy  
       Aug 28, 2019
    性能比 laravel 高了吗
    duhui
        3
    duhui  
       Aug 28, 2019
    但是 Rails 开发爽多了好吗
    TangMonk
        4
    TangMonk  
    OP
       Aug 28, 2019
    @duhui rails 只是刚开始爽,上线后就难搞了。比如说招不到人,性能慢,没人能够接手。
    dvaknheo
        5
    dvaknheo  
       Aug 29, 2019
    @jfcherng 从这里知道了 Ubiquity Symlex 两个老外框架
    jfcherng
        6
    jfcherng  
       Aug 30, 2019
    @dvaknheo 其實我也是, benchmark 是隨手找的 哈哈
    ztxcccc
        7
    ztxcccc  
       Sep 12, 2019
    Symfony 国内用的人太少了呀
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1378 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 17:10 · PVG 01:10 · LAX 10:10 · JFK 13:10
    ♥ Do have faith in what you're doing.