Files
hardware_interfaces/keymaster/4.0/vts/performance/README
Rob Barnes f82aa5d4fe Added standalone benchmark for keymaster.
Test: Run benchmark
Bug: 139890773
Change-Id: I23c511b70bd27c58a188b5fc8ae690cdbb775dec
2019-11-25 21:16:01 +00:00

20 lines
856 B
Plaintext

# 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.