Opened 6 years ago

Closed 2 years ago

#207 closed defect (fixed)

XCache 只有 Apc 的 效率的一半 ?

Reported by: gxd305 Owned by: moo
Priority: major Milestone: 2.0.0
Component: cacher Version: 1.2.2
Keywords: Cc:
Application: PHP Version:
Other Exts: SAPI: apache1
Probability: Blocked By:
Blocking:

Description (last modified by moo)

今天,本来想将Apc替换为 XCache.

但是测试结果 XCache 要比Apc 有一些差距,虽然 apc 不存在 apc bomb 的问题。

我们采用 http_load 测试我们的几个页面:

        10      20 

apc    46.6    50.2981 

xcache 29      46 

    10  20  30  

apc 93.8 70.7968 73.9967 

xcache 61 61.1943 61.4 

    10   20  30 

apc  104.3 100.699 96.8996

xcache 61.2 61.5954 61.6991



     apc          xcache

   50   100     50    100

1 91.5  63      57    59

2 77    86      60    59

3 40    36      42    38 

似乎在并发很高的时候会好一些,但这样的结果还是有些意外。

不知道,有没有人测试过,结果如何?

Change History (3)

comment:1 Changed 5 years ago by moo

  • Description modified (diff)
  • Status changed from new to accepted

这可能是因为 XCache 在一些安全上过于严谨. 我将进行性能测试以定位问题

comment:2 Changed 2 years ago by moo

  • Status changed from accepted to new

comment:3 Changed 2 years ago by moo

  • Milestone changed from 1.3.3 to 2.0.0
  • Resolution set to fixed
  • Status changed from new to closed

should have been fixed in 2.0.0. feedback needed

Note: See TracTickets for help on using tickets.