Hi, Steven Grimm

I agree with you. I sorry for not to explain my purpose very clear.

My purpose is to compare single-threaded event-driven program 
vs. half-sync/half-async thread pool program. The both are based on libevent.

Best regards,

liusifan
2007-05-18

>>>I don't think that's a fair test since the server-side application code
>is not the same. spcached might be significantly less optimized than
>memcached which will reduce your throughput for reasons that have
>nothing to do with multithreading.
>
>Please try memcached 1.2.2 compiled in both single-threaded and
>multi-threaded modes; the code paths there are not 100% identical but
>they're a lot closer to identical than in this test. To compile 1.2.2 in
>MT mode, run "./configure --enable-threads" when you build it. You can
>control the number of threads with the "-t" option. Note that each
>client connection is bound to a thread, so make sure your benchmark
>opens lots of connections if you want to do a fair test of thread
>performance.
>
>In addition, you might want to compare the single-threaded memcached
>1.2.2 with the same version compiled as a multi-threaded app, but run
>with "-t 1" so that it only uses one thread. That will tell you how much
>overhead is introduced by the threading infrastructure itself (acquiring
>locks, etc.) without any possibility of resource contention affecting
>the results.
>
>-Steve
>
>
>
                        

Reply via email to