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>
Wed, 31 Mar 2021 14:33:13 +0000 (10:33 -0400)
commit57aff1c0cf6029088ea77d69ee7d5c83527c4cf1
tree8b0f11422e7edc38e46e1aff9bcc7f74e40f9a3e
parent578989d31ac17bfeac4fec8e866c29d1f2b12eca
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.025498 seconds and 4 git commands to generate.