tusharmath / observable-air

Observable for the calorie conscious
MIT License
34 stars 3 forks source link

Feat combine #228

Closed tusharmath closed 6 years ago

tusharmath commented 6 years ago

observable-air@ benchmark /home/travis/build/tusharmath/observable-air tsc; node ./benchmarks/run

Node: v9.3.0 V8: 6.2.414.46-node.15

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 722 (±1.11%)    │ 81      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 953 (±5.24%)    │ 53      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 82,808 (±2.21%) │ 72      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 47 (±4.23%)     │ 75      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 24 (±1.28%)     │ 60      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 418 (±0.66%)    │ 86      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 6,863 (±2.84%)  │ 71      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 1,185 (±0.75%)  │ 88      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> mergeMap                                    │ 40 (±1.31%)     │ 64      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ (file, file) -> concat                              │ 20,064 (±1.86%) │ 78      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.01%) to 89.041% when pulling 8637913bf269665c5896f090d904601cb2af7cee on feat-combine into 221793d98c661596ddcb49a8534fae59f8ac7de8 on master.