1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
Android.bp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
KeyMintBenchmark.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README

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