tusharmath / observable-air

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

Take Until Operator #191

Closed tusharmath closed 7 years ago

tusharmath commented 7 years ago

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

Node: v8.1.0 V8: 5.8.283.41

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 996 (±0.89%)    │ 83      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 707 (±6.18%)    │ 55      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 67,179 (±3.42%) │ 66      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 66 (±1.41%)     │ 76      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 30 (±1.03%)     │ 71      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 490 (±0.46%)    │ 84      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 3,616 (±5.01%)  │ 70      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array -> multicast -> takeUntil                     │ 6,516 (±1.46%)  │ 84      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 2,271 (±0.25%)  │ 90      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 86.815% when pulling c65e337b072e445b8f0b1a16c14a007862c1632c on take-until into 92f8ea34ea62d58fc705b6bec0e9dd29c382cecc on master.

tusharmath commented 7 years ago

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

Node: v8.1.0 V8: 5.8.283.41

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 846 (±1.61%)    │ 75      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 364 (±9.58%)    │ 39      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 32,621 (±7.17%) │ 42      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 44 (±8.73%)     │ 45      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 16 (±5.33%)     │ 42      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 246 (±3.62%)    │ 59      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 1,612 (±5.42%)  │ 39      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array -> multicast -> takeUntil                     │ 3,156 (±2.18%)  │ 57      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 1,129 (±6.31%)  │ 49      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 86.815% when pulling c65e337b072e445b8f0b1a16c14a007862c1632c on take-until into 92f8ea34ea62d58fc705b6bec0e9dd29c382cecc on master.

tusharmath commented 7 years ago

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

Node: v8.1.0 V8: 5.8.283.41

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 818 (±2.39%)    │ 70      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 328 (±13.23%)   │ 42      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 31,076 (±5.92%) │ 36      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 35 (±6.64%)     │ 58      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 15 (±5.23%)     │ 39      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 249 (±2.65%)    │ 66      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 1,645 (±6.74%)  │ 50      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array -> multicast -> takeUntil                     │ 3,234 (±3.28%)  │ 61      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 960 (±4%)       │ 51      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 86.815% when pulling c9545a303e9799942e4fa381894b5f09c8568eac on take-until into 92f8ea34ea62d58fc705b6bec0e9dd29c382cecc on master.