Skip to content

Commit

Permalink
Remove modify benchmarks from ProductIsoBench
Browse files Browse the repository at this point in the history
  • Loading branch information
japgolly committed Nov 21, 2015
1 parent e5ace63 commit 04e64d5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bench/src/main/scala/monocle/bench/ProductIsoBench.scala
Expand Up @@ -54,9 +54,6 @@ class ProductIsoBench {
val a: A
val b: B
val iso: Iso[A, B]
val rev: Iso[B, A]
val idA: A => A = identity
val idB: B => B = identity
}
def Test[X, Y](i: Iso[X, Y])(y: Y): Test =
new Test {
Expand All @@ -65,7 +62,6 @@ class ProductIsoBench {
override val a = i reverseGet y
override val b = y
override val iso = i
override val rev = i.reverse
}

@Param(Array("mono2", "mono4", "mono8", "poly2", "poly4", "poly8"))
Expand Down Expand Up @@ -101,8 +97,4 @@ class ProductIsoBench {

@Benchmark def get = test(t => t.iso get t.a)
@Benchmark def reverseGet = test(t => t.iso reverseGet t.b)

import scala.language.existentials
@Benchmark def modify = test(t => t.iso modify t.idB)
@Benchmark def reverseModify = test(t => t.rev modify t.idA)
}

0 comments on commit 04e64d5

Please sign in to comment.