[systemd-devel] [PATCH 4/4] kdbus-benchmark: use KDBUS_HELLO_CACHE_META to improve benchmark
Djalal Harouni
tixxdz at opendz.org
Fri Jun 27 03:32:08 PDT 2014
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 <tixxdz at 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
More information about the systemd-devel
mailing list