Commit 27b871af authored by Noric Couderc's avatar Noric Couderc

Changed jmh configuration

This change is most likely temporary
parent ff527fd3
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
* user guide available at https://docs.gradle.org/2.10/userguide/tutorial_java_projects.html * user guide available at https://docs.gradle.org/2.10/userguide/tutorial_java_projects.html
*/ */
// Apply the java plugin to add support for Java // Apply the java plugin to add support for Java
buildscript { buildscript {
ext.kotlin_version = '1.3.11' ext.kotlin_version = '1.3.11'
...@@ -34,25 +32,29 @@ mainClassName = 'se.lth.cs.ApplicationRunner' ...@@ -34,25 +32,29 @@ mainClassName = 'se.lth.cs.ApplicationRunner'
applicationDefaultJvmArgs = ["-Djava.library.path=/usr/lib/x86_64-linux-gnu:./lib/native", "-Xbatch"] applicationDefaultJvmArgs = ["-Djava.library.path=/usr/lib/x86_64-linux-gnu:./lib/native", "-Xbatch"]
jmh { jmh {
// 'perf' uses perf over the whole iteration // 'perf' uses perf over the whole iteration
// 'perfnorm' normalizes over each operation (call to benchmark) // 'perfnorm' normalizes over each operation (call to benchmark)
// profilers = ['perf:delay=0'] // profilers = ['perf:delay=0']
// profilers = ['perf:delay=0'] // profilers = ['perf:delay=0']
// avg mode: Loops through the benchmark during timeOnIteration // avg mode: Loops through the benchmark during timeOnIteration
// and averages the running time. // and averages the running time.
// We take single shot time (just run the benchmark once) // We take single shot time (just run the benchmark once)
// Mode of the benchmark in ['avgt', 'sample', 'thrpt', 'ss', 'all'] // Mode of the benchmark in ['avgt', 'sample', 'thrpt', 'ss', 'all']
// benchmarkMode = ['ss'] // benchmarkMode = ['ss']
resultFormat = 'JSON' include = ["List"]
resultsFile = project.file('jmh-results.json') resultFormat = 'CSV'
warmupIterations = 3 resultsFile = project.file('jmh-results.csv')
warmup = '1s' warmupIterations = 3
fork = 1 warmup = '500ms'
iterations = 10 fork = 1
// Minimum time to spend at each measurement iteration iterations = 5
timeOnIteration = '1s' // Minimum time to spend at each measurement iteration
// benchmarkParameters = [seed: ['0', '1']] timeOnIteration = '250ms'
// humanOutputFile = project.file("output-perf.txt") benchmarkParameters = [seed: (0..10)*.toString(),
applicationSize: [10, 100, 1000]*.toString(),
baseStructureSize: [0, 1000, 10000]*.toString()]
// humanOutputFile = project.file("output-perf.txt")
}
task benchmarkJar(type: Jar, dependsOn: jmhJar) { task benchmarkJar(type: Jar, dependsOn: jmhJar) {
manifest { manifest {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment