Skip to content

Commit 9ef2f14

Browse files
Add perf test for raw SQLite.
1 parent 0685958 commit 9ef2f14

File tree

7 files changed

+558
-0
lines changed

7 files changed

+558
-0
lines changed

PerformanceTests/Sqlite/build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:1.3.1'
8+
}
9+
}
10+
11+
apply plugin: 'com.android.application'
12+
13+
android {
14+
buildToolsVersion rootProject.ext.buildToolsVersion
15+
compileSdkVersion rootProject.ext.compileSdkVersion
16+
17+
defaultConfig {
18+
applicationId 'de.greenrobot.performance.sqlite'
19+
minSdkVersion rootProject.ext.minSdkVersion
20+
targetSdkVersion rootProject.ext.targetSdkVersion
21+
22+
testInstrumentationRunner 'android.test.InstrumentationTestRunner'
23+
24+
buildConfigField "boolean", "RUN_PERFORMANCE_TESTS", "false"
25+
}
26+
}
27+
28+
dependencies {
29+
androidTestCompile project(':PerformanceTests:Common')
30+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package de.greenrobot.performance.sqlite;
2+
3+
/**
4+
* Simple entity with a string property that is indexed.
5+
*/
6+
public class IndexedStringEntity {
7+
8+
public Long _id;
9+
10+
public String indexedString;
11+
12+
}

0 commit comments

Comments
 (0)