Coder Social home page Coder Social logo

androidcompare's Introduction

AndroidCompare

Kotlin XML vs Kotlin Jetpack Compose vs Flutter

Release APK Sizes

Kotlin XML -> 4.59MB (old) -> 4.67MB
Kotlin Jetpack Compose -> 4.85MB (old) -> 4.73MB
Flutter -> 17.48MB (old) -> 17.7MB

After installation

Kotlin XML apk size -> 26.09MB (old) -> 27.37MB
Kotlin Jetpack Compose apk size -> 36.36MB (old) -> 36.32MB
Flutter apk size -> 29.43MB (old) -> 30.61MB

Speed Test

Scenario: Open app -> Get data -> Scroll to last data -> Click on data and show toast message -> Wait until message disappears -> Close app.

Scenario base at hand, not UI testing

Total Seconds

5.16 	kotlin xml 
5.63 	kotlin compose
4.74 	flutter

Kotlin XML

CPU   VSS       RSS
0%    864488K   67576K  com.anime.app
6%    907848K   87984K  com.anime.app
2%    893084K   84300K  com.anime.app

Kotlin Jetpack Compose

CPU   VSS       RSS
0%    835808K   39336K  com.anime.jetpack.compose
4%    907776K   90472K  com.anime.jetpack.compose
25%   908476K   94204K  com.anime.jetpack.compose

Flutter

CPU   VSS       RSS
0%    885108K   79216K com.example.anime_app_flutter
4%    891704K   89328K com.example.anime_app_flutter

Details

https://stackoverflow.com/questions/14042687/cpu-usage-per-application-in-android)

Command : adb shell top | grep anime

Flutter 3.3.2 Dart 2.18.1 DevTools 2.15.0 (old Flutter 2.10.4 Dart 2.16.2 DevTools 2.9.2)

Kotlin 1.7.10 (new version uses Glide) (old version used Picasso)

Kotlin 1.7.10 Compose Version = 1.3.0-beta01

These tests are based on Android 6 Device

androidcompare's People

Contributors

vidarrrr avatar

Watchers

 avatar

androidcompare's Issues

Deficiencies

  • Flutter 3 version
  • Cleaning up unnecessary codes
  • What to do if there is no internet (try catch, toast messages, ...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.