Skip to content

Rexee/AndroidDatabaseLibraryComparison

 
 

Repository files navigation

AndroidDatabaseLibraryComparison

A test between a few of the popular libraries running a speed test on how fast they load and save data.

Benchmark Description

There are two benchmarks:
Simple model. Writes and reads 10000 times:

public class SimpleAddressItem{
  String name;
  String address;
  String city;
  String state;
  long phone;
}

Complex model. Writes and reads 50x times with 50 items in each collection:

public class AddressBook{
    Long id;
    String name;
    String author;
    Collection<AddressItem> addresses;
    Collection<Contact> contacts;
}
public class AddressItem extends SimpleAddressItem {
    private AddressBook addressBook;
}
public class Contact{
    String name;
    String email;
    AddressBook addressBook;
}

Results

These are the results for the Simple trial: Write:
Simple model
Read:
Simple model
Read without Sugar:
Simple model

And these are the results for the Complex trial: Write:
Complex model
Read:
Complex model
Read without Sugar:
Complex model

About

Comparison popular ORM libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%