Add a busy-wait option [-w] to libdbus daemon test 62/268362/4
authorMichal Bloch <m.bloch@samsung.com>
Tue, 8 Mar 2022 14:45:15 +0000 (15:45 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 8 Mar 2022 14:45:28 +0000 (15:45 +0100)
commitce562805f454c993eedeb3ec1a572d1dc84992d4
tree87b61f87a9d9cf7186b434b40c3de310c8299180
parent800986ddc5808b894c10d21aafdad82311b2d9d1
Add a busy-wait option [-w] to libdbus daemon test

Makes the test more consistent by avoiding scheduler and memory cache
issues, leaving just true latency (-60% to values on my particular setup).

However, also makes it model the real world less well.

This makes it good for %-based comparisons,
but less so for absolute time measurements.

Change-Id: Ia71976c83e26f180babfe7f512adebda20e281e6
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
benchmark/libdbus.c