How to run a Performance Test

We now offer a performance test for Fire OS apps to measure First Frame (Time to Initial Display), which basically means it will test how fast your app will get started.

Set up

To get started you’ll need to:

Install

Once you’ve done that, you can install the performance tester with these steps:

  1. Clone the performance tester repository by running this command in the terminal:
git clone https://github.com/amazonappdev/fireos-perf-testing.git
  1. Navigate to the project directory:
cd fireos-perf-testing
  1. Build the project and create the JAR:
mvn clean install

Run the test

You can then run the test with the following steps:

  1. Locate the ZIP file FOSTTIDPerfTesting-distribution.zip file in the ‘jar’ folder
  2. Unzip it
  3. Navigate to FOSTTIDPerfTesting-distribution > Input > APK folder
  4. Copy the APK file you want to test into the APK folder
  5. Rename the APK file Input.apk
  6. In the terminal, navigate to the new FOSTTIDPerfTesting-distribution folder
cd FOSTTIDPerfTesting-distribution
  1. Decide which kind of test you want to do:
  • cool
  • warm
  • latency (which does both cool and warm tests)
  1. Plug your device in to your computer (if you haven’t already) and select “Allow USB Debugging” (if you haven’t already)
  1. Get your device serial number (if you don’t already have it on hand) by running
adb devices
  1. Run the test with this command:
java -jar PerformanceKpi-jar.jar <Test Type> <Device Serial Number)>

If you decide to go with the full latency command, it should look something like this:

java -jar PerformanceKpi-jar.jar latency GCC2DM000000000S
  1. The full latency test can take about an hour to run, so be patient!

  1. You’ll find the test results in a folder called test-output in the FOSTTIDPerfTesting-distribution folder.

That’s all there is to it! For more details, check out the github repo for the FireOS Performance Test.

If you have any questions or feedback, let us know.