Back to project page android-orm-benchmark.
The source code is released under:
Apache License
If you think the Android project android-orm-benchmark listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.littleinc.orm_benchmark; //from w w w .ja va2 s . c o m import java.sql.SQLException; import android.content.Context; public interface BenchmarkExecutable { public static final String SEARCH_TERM = "a"; public static final long SEARCH_LIMIT = 100; public static final int NUM_READERS = 10; public static final int NUM_USER_INSERTS = 1000; public static final int NUM_MESSAGE_INSERTS = 10000; public static final int NUM_MESSAGES_WITH_READERS = 50; public static final int LOOK_BY_INDEXED_FIELD = 5000; public static enum Task { CREATE_DB, WRITE_DATA, READ_DATA, READ_INDEXED, READ_SEARCH, DROP_DB; } int getProfilerId(); String getOrmName(); void init(Context context, boolean useInMemoryDb); long createDbStructure() throws SQLException; long writeWholeData() throws SQLException; long readWholeData() throws SQLException; long readIndexedField() throws SQLException; long readSearch() throws SQLException; long dropDb() throws SQLException; }