Skip to content

Latest commit

 

History

History
53 lines (47 loc) · 1.3 KB

File metadata and controls

53 lines (47 loc) · 1.3 KB

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