summaryrefslogtreecommitdiff
path: root/security/keymint/aidl/vts/performance/README
blob: 1221ad85770f6cdacb8c26540a313bfd08c96927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# KeyMint Benchmark

The KeyMint Benchmark is a standalone tool for measuring the performance of
 KeyMint implementations.

## Building

Build:
`m  VtsAidlKeyMintBenchmarkTest`

Transfer to device/emulator:
`adb sync data`

The benchmark executable will be located at
 `data/benchmarktest/VtsAidlKeyMintBenchmarkTest` on the device.

## Usage

KeyMint 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 to allow specification of the KeyMint
fully qualified service name, e.g. specify
`--service_name=android.hardware.security.keymint.IKeyMintDevice/default` to
benchmark default implementation of KeyMint.