tusharmath / observable-air

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

Combine Operator #154

Closed tusharmath closed 7 years ago

tusharmath commented 7 years ago

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

Node: v7.6.0 V8: 5.5.372.40

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 975 (±1.37%)    │ 83      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 794 (±4.86%)    │ 64      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 22,313 (±3.78%) │ 70      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 58 (±3.08%)     │ 67      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 32 (±1.88%)     │ 74      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 492 (±2.36%)    │ 80      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,232 (±4.47%)  │ 50      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 1,969 (±2.62%)  │ 85      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-1.6%) to 87.798% when pulling 36e5db855cd7eb160fc2362a8064bc05deac491b on combine-new into 57a2d362930c122291ea63a2a154f32548e9d439 on master.

tusharmath commented 7 years ago

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

Node: v7.6.0 V8: 5.5.372.40

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 920 (±2.48%)    │ 77      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 662 (±6.61%)    │ 46      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 16,421 (±6.86%) │ 58      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 46 (±7.05%)     │ 56      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 24 (±5.37%)     │ 57      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 352 (±5.37%)    │ 61      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 3,414 (±6.91%)  │ 60      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 1,597 (±5.66%)  │ 71      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 89.517% when pulling ca90ce07ed9078451679b182baab27f5b47e4984 on combine-new into 57a2d362930c122291ea63a2a154f32548e9d439 on master.

tusharmath commented 7 years ago

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

Node: v7.9.0 V8: 5.5.372.43

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 1,002 (±1.17%)  │ 84      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 799 (±5.78%)    │ 59      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 22,501 (±4.44%) │ 70      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 62 (±3.11%)     │ 71      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 34 (±0.57%)     │ 79      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 483 (±3.12%)    │ 80      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,077 (±5.04%)  │ 63      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 2,086 (±1.31%)  │ 86      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 87.172% when pulling ebee7bc34a93dc20aee3d92d8ee60a417c916f15 on combine-new into da4d51513c1606ec712be799e40929b23ae63111 on master.

tusharmath commented 7 years ago

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

Node: v7.9.0 V8: 5.5.372.43

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 1,003 (±0.63%)  │ 84      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 806 (±7.34%)    │ 62      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 24,351 (±2.09%) │ 73      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 63 (±1.62%)     │ 72      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 33 (±1.01%)     │ 77      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 522 (±0.48%)    │ 85      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,408 (±3.99%)  │ 53      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 2,144 (±1.89%)  │ 89      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 87.072% when pulling 976fc8cb4351e1b371d9acc71ac3da651c2382c6 on combine-new into 5cbb30074f22ae6b146c0450f008ca0acb6fadb6 on master.

tusharmath commented 7 years ago

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

Node: v7.9.0 V8: 5.5.372.43

┌─────────────────────────────────────────────────────┬────────────────┬─────────┐
│ name                                                │ ops/sec        │ samples │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ create                                              │ 1,022 (±0.28%) │ 86      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                                    │ 859 (±4.15%)   │ 66      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 23,619 (±7.1%) │ 75      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                               │ 64 (±1.4%)     │ 74      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce                              │ 33 (±0.28%)    │ 77      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 523 (±0.6%)    │ 86      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,849 (±4.25%) │ 67      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                                            │ 2,205 (±0.19%) │ 91      │
└─────────────────────────────────────────────────────┴────────────────┴─────────┘
tusharmath commented 7 years ago

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

Node: v7.9.0 V8: 5.5.372.43

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 1,012 (±0.76%)  │ 86      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 823 (±3.27%)    │ 68      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 22,471 (±3.84%) │ 69      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 66 (±0.7%)      │ 76      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 34 (±0.98%)     │ 78      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 496 (±2.3%)     │ 81      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,565 (±3.95%)  │ 61      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 2,179 (±0.18%)  │ 90      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
tusharmath commented 7 years ago

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

Node: v7.9.0 V8: 5.5.372.43

┌─────────────────────────────────────────────────────┬────────────────┬─────────┐
│ name                                                │ ops/sec        │ samples │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ create                                              │ 999 (±0.57%)   │ 84      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                                    │ 864 (±3.91%)   │ 66      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 22,799 (±5.4%) │ 79      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                               │ 63 (±0.52%)    │ 73      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce                              │ 34 (±0.24%)    │ 77      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 523 (±0.19%)   │ 86      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,645 (±3.73%) │ 63      │
├─────────────────────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                                            │ 2,167 (±0.43%) │ 89      │
└─────────────────────────────────────────────────────┴────────────────┴─────────┘
tusharmath commented 7 years ago

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

Node: v7.9.0 V8: 5.5.372.43

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 645 (±1.98%)    │ 62      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 401 (±5.62%)    │ 36      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 10,021 (±5.76%) │ 58      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 38 (±6.46%)     │ 60      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 15 (±2.71%)     │ 44      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 268 (±1.44%)    │ 69      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 1,866 (±7.82%)  │ 47      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 939 (±3.6%)     │ 70      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
tusharmath commented 7 years ago

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

Node: v7.9.0 V8: 5.5.372.43

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 1,003 (±1.19%)  │ 84      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 755 (±6.07%)    │ 51      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 23,463 (±5.41%) │ 71      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 64 (±1.44%)     │ 73      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 28 (±4.15%)     │ 66      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 512 (±0.81%)    │ 84      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,071 (±3.58%)  │ 59      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 2,122 (±1.01%)  │ 89      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 87.072% when pulling 18eb29ac88cefd25174b31ef7e63be8cd66fccd6 on combine-new into 1e9fef25640a3f4eaa780babb0059bc4b302be2c on master.