Use the new KDBUS_HELLO_CACHE_META flag to improve benchmark by ~50% This reduces latency and allows sending metadata at the same time.
Signed-off-by: Djalal Harouni <tix...@opendz.org> --- test/test-kdbus-benchmark.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-kdbus-benchmark.c b/test/test-kdbus-benchmark.c index f3b49e1..7d3c6d5 100644 --- a/test/test-kdbus-benchmark.c +++ b/test/test-kdbus-benchmark.c @@ -268,7 +268,8 @@ int main(int argc, char *argv[]) if (!conn_a) return EXIT_FAILURE; - conn_b = kdbus_hello(bus, 0); + /* conn_b = kdbus_hello(bus, 0); */ + conn_b = kdbus_hello(bus, KDBUS_HELLO_CACHE_META); if (!conn_b) return EXIT_FAILURE; -- 1.9.3 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel