Which is faster/better for caching, File System or Memcached?

后端 未结 7 1234
花落未央
花落未央 2021-02-01 16:54

I don\'t think it\'s clear to me yet, is it faster to read things from a file or from memcached? Why?

7条回答
  •  再見小時候
    2021-02-01 17:14

    Cache Type | Cache Gets/sec
    Array Cache | 365000
    APC Cache | 98000
    File Cache | 27000 Memcached Cache (TCP/IP) | 12200
    MySQL Query Cache (TCP/IP) | 9900
    MySQL Query Cache (Unix Socket) | 13500
    Selecting from table (TCP/IP) | 5100
    Selecting from table (Unix Socket) | 7400

    Source:
    https://surniaulula.com/os/unix/memcached-vs-disk-cache/

    Source of my source :)
    https://www.percona.com/blog/2006/08/09/cache-performance-comparison/

提交回复
热议问题