Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gvolpe/beautiful-folds
Combining streams and folds using fs2 and origami
https://github.com/gvolpe/beautiful-folds
folds fs2 origami statistics stream streaming
Last synced: 7 days ago
JSON representation
Combining streams and folds using fs2 and origami
- Host: GitHub
- URL: https://github.com/gvolpe/beautiful-folds
- Owner: gvolpe
- Created: 2018-05-30T14:28:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T14:28:33.000Z (over 6 years ago)
- Last Synced: 2024-12-20T16:33:18.916Z (13 days ago)
- Topics: folds, fs2, origami, statistics, stream, streaming
- Language: Scala
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
beautiful-folds
===============Combining streams and folds using [fs2](https://functional-streams-for-scala.github.io/fs2/) and [origami](https://github.com/atnos-org/origami).
### Benchmarks (Avg Time)
##### One Million elements
> jmh:run -i 10 -wi 10 -f 2 -t 1 com.github.gvolpe.folds.benchmarks.Fs2StreamFoldingBenchmark
```
[info] Benchmark Mode Cnt Score Error Units
[info] Fs2StreamFoldingBenchmark.computeStats avgt 20 5766.497 ± 1605.092 ms/op
[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
```
[info] Benchmark Mode Cnt Score Error Units
[info] Fs2StreamFoldingBenchmark.computeStats avgt 20 51794.843 ± 13006.907 ms/op
[info] Fs2StreamFoldingBenchmark.computeStatsConcurrently avgt 20 26522.025 ± 1361.007 ms/op
```