On Thu, 24 Nov 2005, Greg Stark wrote:
> > > You executed LWLock 2.6 million times in just under 300ms. If my math is right > that's about 115 nanoseconds per lock or about 300 cycles on a 2.6Ghz > processor. > > That sounds like a lot but it's about the right order of magnitude. Was this > on a multiprocessor machine? In which case a big part of that time is probably > spent synchronizing between the processors. > Your math is right iff my math is right :-) It is a 2.4G desktop computer. I may need to write some separate tests to see if this is what we should pay for bus lock instruction. Regards, Qingqing ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq