- Download the official benchmarking tool ( as a
pre-built native command line library
):
wget https://storage.googleapis.com/tensorflow-nightly-public/prod/tensorflow/release/lite/tools/nightly/latest/android_arm_benchmark_model
- Run the benchmark from command line:
./android_arm_benchmark_model \
--graph=model.tflite \
--num_threads=4
The results will be displayed in the terminal log.
Useful Link: https://www.tensorflow.org/lite/performance/measurement