Commit Graph

4 Commits

Author SHA1 Message Date
Brian Barcenas
35714d4ced pw_perf_test: Added PW_PERF_TEST macro and its supporting components
Change-Id: I7dd3e7a1b5a48b38457647fc3fdbc8dd422f1934
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/118111
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Brian Barcenas <bbarcenas@google.com>
2022-12-03 02:32:03 +00:00
Brian Barcenas
23304eb9d5 pw_perf_test: State object support
Introducing the state object, which manages iterations and timings of
the tests.

Change-Id: I3dca90878681ba816aa15d7ef85b6423a6391140
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/114550
Commit-Queue: Brian Barcenas <bbarcenas@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2022-11-21 22:28:58 +00:00
Brian Barcenas
fbd6d5d792 pw_perf_test: Added internal timing facade + backend
pw_perf_test now has a backend for which it will use
to time the tested components. This update includes
an implementation with pw_chrono, which will be used
for time-based measurements(nanoseconds).

Change-Id: I9a1bb9cf0964caa4d911a1c7c016bab3a41f1e32
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/113890
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Brian Barcenas <bbarcenas@google.com>
Reviewed-by: Erik Gilling <konkers@google.com>
2022-10-20 21:24:39 +00:00
Brian Barcenas
051673443f pw_perf_test: Initialized using pw module create
pw_perf_test is an upcoming module that will be similar to unit_test
but will instead display performance data. A small overview of the
timing interface is provided in pw_perf_test/docs.rst.

Change-Id: I74798931b769e99b3b4c7822c9b467db96b7883c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112971
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Brian Barcenas <bbarcenas@google.com>
2022-10-10 18:20:10 +00:00