fosskers / scalaz-and-cats

Usage examples and benchmarks between Scalaz and Cats (w/ Haskell ground-truth).
489 stars 28 forks source link

bump deps #11

Closed fommil closed 6 years ago

fommil commented 6 years ago
[info] Benchmark                          Mode  Cnt       Score      Error  Units
[info] EqualBench.equalDiffClassCats      avgt   15   97766.777 ± 1177.263  ns/op
[info] EqualBench.equalDiffClassScalaz    avgt   15    3847.684 ±   32.298  ns/op
[info] EqualBench.equalDiffClassVanilla   avgt   15    2928.156 ±   32.670  ns/op
[info] EqualBench.equalDiffIntCats        avgt   15    7727.001 ±  116.271  ns/op
[info] EqualBench.equalDiffIntScalaz      avgt   15   11882.071 ±  129.923  ns/op
[info] EqualBench.equalDiffIntVanilla     avgt   15   10164.713 ±  150.149  ns/op
[info] EqualBench.equalSameClassCats      avgt   15       5.758 ±    0.076  ns/op
[info] EqualBench.equalSameClassScalaz    avgt   15      27.659 ±    0.198  ns/op
[info] EqualBench.equalSameClassVanilla   avgt   15       5.131 ±    0.043  ns/op
[info] EqualBench.equalSameIntCats        avgt   15       5.145 ±    0.053  ns/op
[info] EqualBench.equalSameIntScalaz      avgt   15      27.654 ±    0.199  ns/op
[info] EqualBench.equalSameIntVanilla     avgt   15       5.101 ±    0.037  ns/op
[info] EqualBench.equalWhileClassCats     avgt   15   88214.503 ±  679.495  ns/op
[info] EqualBench.equalWhileClassScalaz   avgt   15  791298.323 ± 5002.390  ns/op
[info] EqualBench.equalWhileClassVanilla  avgt   15   10346.874 ±  277.580  ns/op
[info] EqualBench.equalWhileIntCats       avgt   15     413.640 ±    2.860  ns/op
[info] EqualBench.equalWhileIntScalaz     avgt   15    9649.178 ±  148.105  ns/op
[info] EqualBench.equalWhileIntVanilla    avgt   15     416.650 ±    8.636  ns/op
fommil commented 6 years ago

equalWhile is not great (ImmutableArray must be doing something funky), but equalDiffClass (the most common situation) is fairly close to vanilla.

fosskers commented 6 years ago

equalWhile has never been great, but I don't know why.

fommil commented 6 years ago

Might be worth sticking a profiler on it