objectbox / objectbox-dart-performance

Flutter App benchmarking the performance of ObjectBox against others (e.g. sqflite, Hive).

Home Page:https://objectbox.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ObjectBox Flutter Database Performance Benchmarks

Setup

As usual run flutter pub get.

Running

Make sure to run the app in release mode to avoid any performance penalties from debug mode. (Note: release mode is not supported on the iOS simulator, a real device is required.)

To run in release mode with Android Studio connect a device or start an emulator, then Run > Flutter Run 'main.dart' in Release Mode.

Or run flutter run --release.

To further improve performance, make sure to disconnect dev tools. E.g. stop the app on the device and launch it again.

Implementation notes

Hive

  • No test with index as Hive does not support explicit indexes.

Isar

  • Instead of read all does use query with no conditions and returns all results.
  • Query tests not available (queryWithLinks not implemented).

About

Flutter App benchmarking the performance of ObjectBox against others (e.g. sqflite, Hive).

https://objectbox.io/


Languages

Language:Dart 57.0%Language:C++ 23.1%Language:CMake 14.5%Language:Ruby 2.5%Language:Swift 1.5%Language:C 1.3%Language:Kotlin 0.1%Language:Objective-C 0.0%