Skip to content

Commit

Permalink
benchmarks use -Xmx64 -verbose:gc -ea
Browse files Browse the repository at this point in the history
  • Loading branch information
Jire committed Dec 29, 2020
1 parent f36b7f1 commit 9c648a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jmh/kotlin/org/jire/strukt/benchmarks/Allocate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.util.concurrent.TimeUnit
@BenchmarkMode(Mode.SingleShotTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Benchmark)
@Fork(value = 1)
@Fork(value = 1, jvmArgsAppend = ["-Xmx64m", "-verbose:gc", "-ea"])
@Warmup(iterations = 0)
@Measurement(iterations = 1)
abstract class Allocate(val strukts: Strukts<*>) {
Expand Down
2 changes: 1 addition & 1 deletion src/jmh/kotlin/org/jire/strukt/benchmarks/Read.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit

@BenchmarkMode(Mode.Throughput)
@State(Scope.Benchmark)
@Fork(value = 1)
@Fork(value = 1, jvmArgsAppend = ["-Xmx64m", "-verbose:gc", "-ea"])
@Warmup(iterations = 0)
@Measurement(iterations = 1, time = 300, timeUnit = TimeUnit.MILLISECONDS)
abstract class Read<T : Strukt>(val strukts: Strukts<T>, val field: IntField<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/jmh/kotlin/org/jire/strukt/benchmarks/Write.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit

@BenchmarkMode(Mode.Throughput)
@State(Scope.Benchmark)
@Fork(value = 1)
@Fork(value = 1, jvmArgsAppend = ["-Xmx64m", "-verbose:gc", "-ea"])
@Warmup(iterations = 0)
@Measurement(iterations = 1, time = 300, timeUnit = TimeUnit.MILLISECONDS)
abstract class Write<T : Strukt>(val strukts: Strukts<T>, val field: IntField<T>) {
Expand Down

0 comments on commit 9c648a2

Please sign in to comment.