DragonFly BSD
DragonFly commits List (threaded) for 2004-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/test/sysperf call3.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Mar 2004 18:04:29 -0800 (PST)

dillon      2004/03/19 18:04:29 PST

DragonFly src repository

  Modified files:
    test/sysperf         call3.c 
  Log:
  64-byte-align the test functions so they appear on different cache lines.
  It doesn't seem to make much of a difference through for some unknown
  reason nop1() seems to have slightly lower overhead then nop2().
  
      dhcp62# /tmp/call3
      call nop() function through function pointer in loop
      call3/nop1-1 10.508s 1000000000 loops =  0.011uS/loop
      call3/nop1-2 14.610s 1000000000 loops =  0.015uS/loop
      call3/nop2-2  7.046s 1000000000 loops =  0.007uS/loop
  
  Revision  Changes    Path
  1.2       +3 -0      src/test/sysperf/call3.c


http://www.dragonflybsd.org/cvsweb/src/test/sysperf/call3.c.diff?r1=1.1&r2=1.2&f=h



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]