• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

Android.bpD22-Nov-20231.5 KiB4845

KeyMintBenchmark.cppD22-Nov-202324.8 KiB658550

READMED22-Nov-2023928 2920

README

1# KeyMint Benchmark
2
3The KeyMint Benchmark is a standalone tool for measuring the performance of
4 KeyMint implementations.
5
6## Building
7
8Build:
9`m  VtsAidlKeyMintBenchmarkTest`
10
11Transfer to device/emulator:
12`adb sync data`
13
14The benchmark executable will be located at
15 `data/benchmarktest/VtsAidlKeyMintBenchmarkTest` on the device.
16
17## Usage
18
19KeyMint Benchmark is built on [Google microbenchmark
20library](https://github.com/google/benchmark). All of the commandline arguments
21provided by the microbenchmark library are valid, such as
22`--benchmark_filter=<regex>` or `benchmark_out_format={json|console|csv}`.
23In addition to the command line arguments provided by microbenchmark,
24`--service_name=<service_name>` is provided to allow specification of the KeyMint
25fully qualified service name, e.g. specify
26`--service_name=android.hardware.security.keymint.IKeyMintDevice/default` to
27benchmark default implementation of KeyMint.
28
29