Skip to content

Commit ec75625

Browse files
committed
Fix benchmark parameters.
* Use fork( 1 ) to avoid potential dependency of results on execution order. * Longer warmup for GaussBenchmark.
1 parent 15a694e commit ec75625

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/net/imglib2/algorithm/convolution/ConvolverBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static void main( String[] args ) throws RunnerException
111111
{
112112
Options opt = new OptionsBuilder()
113113
.include( ConvolverBenchmark.class.getSimpleName() )
114-
.forks( 0 )
114+
.forks( 1 )
115115
.warmupIterations( 8 )
116116
.measurementIterations( 8 )
117117
.warmupTime( TimeValue.milliseconds( 100 ) )

src/test/java/net/imglib2/algorithm/convolution/GaussBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static void main( String[] args ) throws RunnerException
6464
Options opt = new OptionsBuilder()
6565
.include( GaussBenchmark.class.getSimpleName() )
6666
.forks( 1 )
67-
.warmupIterations( 4 )
67+
.warmupIterations( 8 )
6868
.measurementIterations( 8 )
6969
.warmupTime( TimeValue.milliseconds( 100 ) )
7070
.measurementTime( TimeValue.milliseconds( 100 ) )

0 commit comments

Comments
 (0)