Files
hardware_interfaces/keymaster/4.0/vts/performance
Jim Blackler a08ea2d23f Revert "Delete KM1"
Revert "Delete KM1"

Revert "Delete KM1"

Revert "Delete KM1"

Revert submission 1844016-delkm1

Reason for revert: b/202675261
Reverted Changes:
Iba996962b:Delete KM1
Ia4c5359cd:Delete KM1
Iee6ec9816:Delete KM1
I6058e4d86:Delete KM1
I8abb9c570:Delete KM1
I9c4dc5c9e:Delete KM1

Change-Id: I2a2d4b737a90f8ce31cd14b68f64564d8d245ab3
2021-10-11 13:38:59 +00:00
..
2021-10-11 13:38:59 +00:00

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