-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
70 lines (61 loc) · 2.4 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
plugins {
id 'java'
id 'com.palantir.docker' version '0.5.2'
// Plugin to create a Jar with all dependencies in it
id 'com.github.johnrengelman.shadow' version '1.2.3'
id 'me.champeau.gradle.jmh' version '0.3.0'
}
group 'ch.unine.vauchers'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'idea'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
mainClassName = "ch.unine.vauchers.erasuretester.Main"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
flatDir { dirs 'lib' }
}
task mkdirLibs {
mkdir('build/libs')
}
docker {
name 'erasuretester'
dependsOn tasks.mkdirLibs
dependsOn tasks.shadowJar
files 'build/libs', 'container-scripts', 'benchmarks_config.yml', 'docker-compose.yml', 'databases/websites02.db', 'databases/generate_dummy_trace.py'
}
run {
if (project.hasProperty("args")) {
args System.getProperty("args").split()
}
}
jmh {
jmhVersion = '1.11.3'
batchSize = 1 // Batch size: number of benchmark method calls per operation. (some benchmark modes can ignore this setting)
fork = 0 // How many times to forks a single benchmark. Use 0 to disable forking altogether
include = '.+FileEncoderDecoderBenchmark'
iterations = 5
operationsPerInvocation = 1 // Operations per invocation.
threads = 4
timeOnIteration = '1s' // Time to spend at each measurement iteration.
timeUnit = 'ms' // Output time unit. Available time units are: [m, s, ms, us, ns].
verbosity = 'NORMAL' // Verbosity mode. Available modes are: [SILENT, NORMAL, EXTRA]
warmup = '0s' // Time to spend at each warmup iteration.
warmupBatchSize = 1 // Warmup batch size: number of benchmark method calls per operation.
warmupForks = 0 // How many warmup forks to make for a single benchmark. 0 to disable warmup forks.
warmupIterations = 0 // Number of warmup iterations to do.
}
dependencies {
compile name: 'fuse-jna-1.0.3-uber'
compile 'org.jetbrains:annotations:15.0'
compile 'org.redisson:redisson:2.2.5'
compile 'com.github.sebyx31:jedis:1ca4ea8e86a49946acd4d0a0bf155288ee9134cf'
compile 'org.slf4j:slf4j-simple:1.7.13'
compile 'net.sourceforge.argparse4j:argparse4j:0.7.0'
compile 'it.unimi.dsi:fastutil:7.0.10'
compile 'com.google.guava:guava:19.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}