项目作者: gvolpe

项目描述 :
Combining streams and folds using fs2 and origami
高级语言: Scala
项目地址: git://github.com/gvolpe/beautiful-folds.git
创建时间: 2018-05-30T14:28:11Z
项目社区:https://github.com/gvolpe/beautiful-folds

开源协议:

下载


beautiful-folds

Combining streams and folds using fs2 and origami.

Benchmarks (Avg Time)

One Million elements

jmh:run -i 10 -wi 10 -f 2 -t 1 com.github.gvolpe.folds.benchmarks.Fs2StreamFoldingBenchmark

  1. [info] Benchmark Mode Cnt Score Error Units
  2. [info] Fs2StreamFoldingBenchmark.computeStats avgt 20 5766.497 ± 1605.092 ms/op
  3. [info] Fs2StreamFoldingBenchmark.computeStatsConcurrently avgt 20 2192.093 ± 168.039 ms/op
Ten Million elements

jmh:run -i 10 -wi 10 -f 2 -t 1 com.github.gvolpe.folds.benchmarks.Fs2StreamFoldingBenchmark

  1. [info] Benchmark Mode Cnt Score Error Units
  2. [info] Fs2StreamFoldingBenchmark.computeStats avgt 20 51794.843 ± 13006.907 ms/op
  3. [info] Fs2StreamFoldingBenchmark.computeStatsConcurrently avgt 20 26522.025 ± 1361.007 ms/op