https://github.com/devapro/app_start_up_time
https://github.com/devapro/app_start_up_time
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devapro/app_start_up_time
- Owner: devapro
- Created: 2022-08-28T14:11:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T12:57:23.000Z (over 3 years ago)
- Last Synced: 2025-06-22T16:56:08.099Z (12 months ago)
- Language: Shell
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Measuring difference of stat time between two APK
#### How to add to the project
app/build.gradle.kts
```kotlin
plugins {
....
id 'androidx.benchmark'
}
```
/build.gradle.kts
```kotlin
buildscript {
....
dependencies {
classpath("androidx.benchmark:benchmark-gradle-plugin:1.1.1")
}
}
```
Script for running application N times and collect statistics of the time from start to the first frame
It can be useful for comparing start-up time between releases.
### Benchmark
```bash
/bin/bash ./startup_time_rooted.sh release/v1.0.1 release/v1.0.2 Phone_API_30
```
Optional parameters:
**Phone_API_30** - name of the emulator (or you can use real device) - device/emulator should be rooted
Required parameters:
**release/v1.0.1** - previous release brunch
**release/v1.0.2** - new release branch
Or for non rooted device, you can use this script, the difference only in Lock clocks on rooted device
```bash
/bin/bash ./startup_time.sh release/v1.0.1 release/v1.0.2 Phone_API_30
```
### Activity manager
```bash
/bin/bash ./startup_time_am.sh release/v1.0.1 release/v1.0.2 Phone_API_30
```