Skip to content

Instantly share code, notes, and snippets.

@tarun-ssharma
Created June 4, 2022 07:47
Show Gist options
  • Save tarun-ssharma/508e6d033a6a08b5b12c675edb81d676 to your computer and use it in GitHub Desktop.
Save tarun-ssharma/508e6d033a6a08b5b12c675edb81d676 to your computer and use it in GitHub Desktop.
  1. 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
  1. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment