summaryrefslogtreecommitdiff
path: root/test/run_device_tests.py
diff options
context:
space:
mode:
authorAndrea Grandi <agrandi@google.com>2022-10-21 08:27:50 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-02 01:18:54 +0000
commit79d4706f92680ed4a192b585a1db072e9e3da7ad (patch)
tree790c1d62a0493417cf496b091f828dc3d953b2d4 /test/run_device_tests.py
parent741bbd86cb48de471759c1519901202467342fca (diff)
downloadchrome-ec-79d4706f92680ed4a192b585a1db072e9e3da7ad.tar.gz
test: Add benchmark library (C++)
Add a benchmark library (benchmark.h) to measure the execution time of functions. It is written in C++ to simplify the interface. For example, it can be used to benchmark lambdas with captures. BUG=b:246366702 BRANCH=none TEST=test/run_device_tests.py -b bloonchipper -t benchmark TEST=make run-benchmark Signed-off-by: Andrea Grandi <agrandi@google.com> Change-Id: Ibed907609a27566e386c511153fcd2d819981356 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3971378 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'test/run_device_tests.py')
-rwxr-xr-xtest/run_device_tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/run_device_tests.py b/test/run_device_tests.py
index 4e0b0127e3..0aee1428f5 100755
--- a/test/run_device_tests.py
+++ b/test/run_device_tests.py
@@ -196,6 +196,7 @@ class AllTests:
TestConfig(test_name="abort"),
TestConfig(test_name="aes"),
TestConfig(test_name="always_memset"),
+ TestConfig(test_name="benchmark"),
TestConfig(test_name="cec"),
TestConfig(test_name="cortexm_fpu"),
TestConfig(test_name="crc"),