Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
fix(bench): fix the compilation fail
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrs committed Jan 21, 2020
1 parent 0f6c3fd commit 8e54dc3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package benchmarks.inMem

import java.util.concurrent.TimeUnit

import agni.RowDecoder
import org.openjdk.jmh.annotations._

import scala.concurrent.duration._

@State(Scope.Thread)
@BenchmarkMode(Array(Mode.Throughput))
@Warmup(iterations = 10, time = 5)
@Measurement(iterations = 10, time = 10)
@OutputTimeUnit(TimeUnit.SECONDS)
@OutputTimeUnit(SECONDS)
@Fork(2)
class RowDecoderBenchmark {
import RowDecoderBenchmark._
Expand Down
13 changes: 13 additions & 0 deletions benchmarks/src/test/scala/benchmarks/inMem/package.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
package benchmarks

import agni.RowDecoder
import agni.generic.semiauto._

package object inMem {
type S5 = (String, String, String, String, String)
type S22 = (String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String)
}

package inMem {

final case class C5(s1: String, s2: String, s3: String, s4: String, s5: String)
object C5 {
implicit val e: RowDecoder[C5] = derivedRowDecoder[C5]
}
final case class C22(s1: String, s2: String, s3: String, s4: String, s5: String, s6: String, s7: String, s8: String, s9: String, s10: String, s11: String, s12: String, s13: String, s14: String, s15: String, s16: String, s17: String, s18: String, s19: String, s20: String, s21: String, s22: String)
object C22 {
implicit val e: RowDecoder[C22] = derivedRowDecoder[C22]
}
final case class C30(s1: String, s2: String, s3: String, s4: String, s5: String, s6: String, s7: String, s8: String, s9: String, s10: String, s11: String, s12: String, s13: String, s14: String, s15: String, s16: String, s17: String, s18: String, s19: String, s20: String, s21: String, s22: String, s23: String, s24: String, s25: String, s26: String, s27: String, s28: String, s29: String, s30: String)
object C30 {
implicit val e: RowDecoder[C30] = derivedRowDecoder[C30]
}
}

0 comments on commit 8e54dc3

Please sign in to comment.