2 Replies Latest reply: Dec 22, 2011 8:32 AM by 906949 RSS

    Binary Search performance issue

    906949
      Hi,
      I have same piece of code of running on two different but similar Solaris machine.

      Machine #1 : SunOS #### 5.10 Generic_147440-01 sun4v sparc SUNW,SPARC-Enterprise-T5120

      Machine #2 : SunOS #### 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire

      The process does a binary search on a shared memory and returns data. On Machine#2 the binary search is almost 10 times faster than Machine #1. The load on both the machine is comparable.

      Can someone please give a pointer that why such a big difference in performance on both the machine despite being similar in architecture and the code is compiled using the same compiler on both the machine.

      Thanks.

      Edited by: 903946 on Dec 21, 2011 11:38 PM
        • 1. Re: Binary Search performance issue
          Sudheendra-Oracle
          You also need to look at in detail on the following
          Number of processors, Total Memory & How these machines were loaded when you ran your code
          Also you cannot run once and come to a conclusion. You need to run the code multiple times and divide the time by number of runs and see how they fare across the hardware.
          • 2. Re: Binary Search performance issue
            906949
            Same no. of processors, same amount of physical memory but machine #2 has more free swap. Though, machine #1 has more no. of IPCs.
            Also, I ran it for more than 300,000 times before concluding.

            Edited by: 903946 on Dec 22, 2011 6:32 AM

            Edited by: 903946 on Dec 22, 2011 6:32 AM