Skip to content

BrnPer/mobile_dev_benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mobile Development Frameworks Benchmarks 🚄

This project consists in some benchmarks created using cross-platform mobile app developments frameworks. Currently, the benchmarks are available for:

  • Flutter
  • .NET MAUI

This project is in a initial phase and doesn't pretend to be a extremely precise scientific experiment. The idea is to just give an overall example of the performance.

Current Benchmarks

Right now the apps contains 2 benchmakrs:

  • JSON Parse - almost every app does some type of JSON parsing for example connecting to an API or storing data in local storage. This benchmark consists in decoding and enconding 1.000.000 times a JSON object.
  • Calculate Primes - this benchmark consists in calculating primes until 100.000.

The algorithms are simple and try to be as similar to each other as possible without any type of language optimization.

Feel free to make any PR with some suggestions to improve the code or add support to other cross-platform development framework.

Results

The following results were executed in a OnePlus 7 📱(Android 12 | Snapdragon 855 | 8GB RAM)

Flutter (3.16.1) .NET MAUI (8)
.apk size 17.9MB 31.6MB
.aab size 18.0MB 31.4MB
JSON Parse 6000ms 12000ms
Calculate Primes 1900ms 2900ms

Date: 29/11/2023

Flutter App:
Flutter app version layout

.NET MAUI App:
.NET MAUI app version layout

How to test in your devices

For the Flutter project you just need to have the Flutter SDK (and all the dependencies installed) and go to its directory and run the command:

flutter build apk --release


For the .NET MAUI project probably the easy and best solution is to use Visual Studio to do the build.

Roadmap

  • Add support for React Native.
  • Add more real-life benchmarks.

Any suggestion feel free to create an issue or make a PR.

Thank you for your time! 😊

About

This repo consists in some benchmarks to see the performance of differenct cross-platform mobile development frameworks as Flutter and .NET MAUI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors