64-byte-align the test functions so they appear on different cache lines.
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 Mar 2004 02:04:28 +0000 (02:04 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 Mar 2004 02:04:28 +0000 (02:04 +0000)
commit1e583ef1bc110f73ed50363aff52a3b169ca0f5b
treed19e17690c815671e4827a894b22476c83f462eb
parent990f969346f0bd3a6b33e4e512ea5422ca496a58
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
test/sysperf/call3.c