tusharmath / observable-air

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

Use mixins #208

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.4.0 V8: 6.0.286.52

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 1,005 (±0.79%)  │ 86      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 773 (±8.82%)    │ 33      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 60,792 (±9.79%) │ 57      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 46 (±7.57%)     │ 76      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 27 (±0.95%)     │ 66      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 370 (±5.52%)    │ 76      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 3,686 (±7.61%)  │ 62      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 2,610 (±1.24%)  │ 91      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> mergeMap                                    │ 41 (±2.61%)     │ 65      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+1.7%) to 85.86% when pulling 6e0fc6bf65f4611e2f4a6b074e0497c038ce2f12 on use-mixins into ef506bc459491e5fda0122f7d40b2ef01f11b96f on master.

tusharmath commented 7 years ago

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

Node: v8.4.0 V8: 6.0.286.52

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 815 (±2.55%)    │ 73      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 422 (±8.44%)    │ 44      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 33,153 (±8.81%) │ 60      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 31 (±4.39%)     │ 72      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 16 (±1.11%)     │ 72      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 233 (±1.98%)    │ 78      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 1,980 (±6.09%)  │ 56      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 1,208 (±1.15%)  │ 78      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> mergeMap                                    │ 18 (±6.04%)     │ 45      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+1.7%) to 85.86% when pulling 92f76a5beaa6880e5fbf255e4f274eddf36df806 on use-mixins into ef506bc459491e5fda0122f7d40b2ef01f11b96f on master.