tests: improve benchmark script
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Mar 2021 20:33:26 +0000 (16:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Mar 2021 20:33:26 +0000 (16:33 -0400)
commit3b2e18579fd7ae05607a7c1ba1265848736f98e3
tree322d7d91be0ddf85cd210a1edc02706ff648cec3
parent4199ddc7eb37386241633a0dd65a5305ec97cb15
tests: improve benchmark script

Kill session daemon after script, conditionally drop caches if root
(else it is forbidden to do so), handle cleanup on trap, use snapshot
(flight recorder) tracing to benchmark ring buffer, output the result in
nanoseconds, removing trailing numbers after dot.

Before this, the test was pretty much always resulting in an output of
"0s" extra overhead due to truncation of significant numbers in the
output.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia7844f3a52821da972b24bf9f39158c24329f63a
tests/benchmark/test_benchmark
This page took 0.024681 seconds and 4 git commands to generate.