mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Apply the same fix as https://r.android.com/2462896 to keymaster/4.0/vts/performance/Benchmark.cpp Test: presubmit Bug: 271241374 Change-Id: Ib0d2a3a523491d0522f5b3dd031cdde46f88a165
# Keymaster Benchmark
The Keymaster Benchmark is a standalone tool for measuring the performance of keymaster implementations.
## Building
Build:
`m keymaster_benchmark`
Transfer to device/emulator:
`adb sync data`
The benchmark executable should will be located at `data/benchmarktest/keymaster_benchmark/keymaster_benchmark` on the device.
## Usage
Keymaster Benchmark is built on [Google microbenchmark library](https://github.com/google/benchmark).
All of the commandline arguments provided by the microbenchmark library are valid, such as `--benchmark_filter=<regex>` or `benchmark_out_format={json|console|csv}`.
In addition to the command line arguments provided by microbenchmark, `--service_name=<service_name>` is provided allow specification of the keymaster service name, e.g. specify `--service_name=strongbox` to benchmark strongbox.