Coder Social home page Coder Social logo

alexkeramidas / greendao-vs-realm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oliveeyay/greendao-vs-realm

0.0 2.0 0.0 154 KB

A project that aims to compare performances between this two libs, with my custom complex object (did not find a github project with that comparison).

License: Apache License 2.0

Java 100.00%

greendao-vs-realm's Introduction

GreenDao-vs-Realm

A project that aims to compare performances between this two libs, with my custom complex object (did not find a github project with that comparison).

=== Results are (all the logic is done in androidTest):

  • Samsung Galaxy S7 Edge (6.0.1):
GreenDaoPerformanceTest: Insert of 1 DailyMealApi took : 179 milliseconds
GreenDaoPerformanceTest: Mass insert of 365 DailyMealApi took : 950 milliseconds
GreenDaoPerformanceTest: Query of one DailyMealApi took : 0 milliseconds
GreenDaoPerformanceTest: Query of all the DailyMealApi (not ordered) took : 4 milliseconds
GreenDaoPerformanceTest: Query of all the DailyMealApi (ordered) took : 4 milliseconds
GreenDaoPerformanceTest: Size of the DailyMeal GreenDao database is : 185 KB

RealmPerformanceTest: Insert of 1 DailyMealRealm took : 44 milliseconds
RealmPerformanceTest: Mass insert of 365 DailyMealRealm took : 330 milliseconds
RealmPerformanceTest: Query of one DailyMealRealm took : 0 milliseconds
RealmPerformanceTest: Query of all the DailyMealRealm (not ordered) took : 1 milliseconds
RealmPerformanceTest: Query of all the DailyMealRealm (ordered) took : 0 milliseconds
RealmPerformanceTest: Size of the DailyMeal Realm database is : 588 KB
  • HTC One (4.3):
GreenDaoPerformanceTest: Insert of 1 DailyMealApi took : 1035 milliseconds
GreenDaoPerformanceTest: Mass insert of 365 DailyMealApi took : 2220 milliseconds
GreenDaoPerformanceTest: Query of one DailyMealApi took : 1 milliseconds
GreenDaoPerformanceTest: Query of all the DailyMealApi (not ordered) took : 6 milliseconds
GreenDaoPerformanceTest: Query of all the DailyMealApi (ordered) took : 6 milliseconds
GreenDaoPerformanceTest: Size of the DailyMeal GreenDao database is : 185 KB

RealmPerformanceTest: Insert of 1 DailyMealRealm took : 42 milliseconds
RealmPerformanceTest: Mass insert of 365 DailyMealRealm took : 1101 milliseconds
RealmPerformanceTest: Query of one DailyMealRealm took : 1 milliseconds
RealmPerformanceTest: Query of all the DailyMealRealm (not ordered) took : 3 milliseconds
RealmPerformanceTest: Query of all the DailyMealRealm (ordered) took : 0 milliseconds
RealmPerformanceTest: Size of the DailyMeal Realm database is : 588 KB
  • Samsung Galaxy S3 (4.4.2):
GreenDaoPerformanceTest: Insert of 1 DailyMealApi took : 549 milliseconds
GreenDaoPerformanceTest: Mass insert of 365 DailyMealApi took : 2821 milliseconds
GreenDaoPerformanceTest: Query of one DailyMealApi took : 1 milliseconds
GreenDaoPerformanceTest: Query of all the DailyMealApi (not ordered) took : 9 milliseconds
GreenDaoPerformanceTest: Query of all the DailyMealApi (ordered) took : 9 milliseconds
GreenDaoPerformanceTest: Size of the DailyMeal GreenDao database is : 185 KB

RealmPerformanceTest: Insert of 1 DailyMealRealm took : 30 milliseconds
RealmPerformanceTest: Mass insert of 365 DailyMealRealm took : 1017 milliseconds
RealmPerformanceTest: Query of one DailyMealRealm took : 0 milliseconds
RealmPerformanceTest: Query of all the DailyMealRealm (not ordered) took : 3 milliseconds
RealmPerformanceTest: Query of all the DailyMealRealm (ordered) took : 0 milliseconds
RealmPerformanceTest: Size of the DailyMeal Realm database is : 588 KB

greendao-vs-realm's People

Contributors

oliveeyay avatar

Watchers

 avatar  avatar

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.