Skip to content

Commit

Permalink
simplify write
Browse files Browse the repository at this point in the history
  • Loading branch information
clairemcginty committed Sep 19, 2024
1 parent 33373a5 commit bded9b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jmh/src/test/scala/magnolify/jmh/MagnolifyBench.scala
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ object ParquetStates {

@State(Scope.Benchmark)
class WriteState[T](writeSupport: WriteSupport[T]) {
var writer: WriteSupport[T] = null
val writer = writeSupport

@Setup(Level.Iteration)
@Setup(Level.Trial)
def setup(): Unit = {
writeSupport.init(new PlainParquetConfiguration())
// Use a no-op RecordConsumer; we want to measure only the record -> group conversion, and not pollute the
Expand All @@ -265,7 +265,6 @@ object ParquetStates {
override def addFloat(value: Float): Unit = {}
override def addDouble(value: Double): Unit = {}
})
this.writer = writeSupport
}
}

Expand Down

0 comments on commit bded9b4

Please sign in to comment.