Guest User

Untitled

a guest
Dec 10th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. package bench
  2.  
  3. import org.openjdk.jmh.annotations._
  4. import impl.Impl._
  5.  
  6. @BenchmarkMode(Array(Mode.Throughput))
  7. @Warmup(iterations = 20, time = 1)
  8. @Measurement(iterations = 20, time = 1)
  9. @Fork(1)
  10. class Bench {
  11.  
  12. @Benchmark
  13. def benchNoBottleneck(): Unit = {
  14. noBottleneck()
  15. }
  16.  
  17. @Benchmark
  18. def benchReflection(): Unit = {
  19. refrection()
  20. }
  21.  
  22. @Benchmark
  23. def benchShapeless(): Unit = {
  24. shapeless()
  25. }
  26.  
  27. @Benchmark
  28. def benchShapelessAny(): Unit = {
  29. shapelessAny()
  30. }
  31.  
  32. @Benchmark
  33. def benchCirce(): Unit = {
  34. circe()
  35. }
  36. }
Add Comment
Please, Sign In to add comment