tusharmath / observable-air

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

refactor(extra): add generic from() static util #221

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.0.0 V8: 6.2.414.32-node.8

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 661 (±2.34%)    │ 77      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 626 (±8.48%)    │ 49      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 79,964 (±6%)    │ 62      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 46 (±4.91%)     │ 71      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 20 (±5.43%)     │ 51      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 336 (±4.19%)    │ 73      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 5,635 (±3.42%)  │ 62      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 949 (±2.16%)    │ 78      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> mergeMap                                    │ 36 (±2.01%)     │ 67      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ (file, file) -> concat                              │ 18,961 (±2.22%) │ 76      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
tusharmath commented 6 years ago

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

Node: v9.0.0 V8: 6.2.414.32-node.8

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 673 (±3.03%)    │ 79      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 576 (±6.84%)    │ 45      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 64,587 (±5.49%) │ 53      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 33 (±6.34%)     │ 57      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 17 (±4.76%)     │ 44      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 300 (±3.91%)    │ 64      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 4,337 (±3.9%)   │ 57      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 795 (±4.38%)    │ 67      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> mergeMap                                    │ 27 (±4.34%)     │ 50      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ (file, file) -> concat                              │ 13,698 (±4.46%) │ 62      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 88.719% when pulling 67a4b349d6521fd8ef3f3835499f08223dbdff96 on extra-updates into 9c314c5cdb12192ace707bf75d367edafcea0ec5 on master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 89.48% when pulling 54f32fd9c251f16f036a4f57740370ae1e719cc7 on extra-updates into 872838a44e1b4a40339f6ac61e1abab89d4bc929 on master.

tusharmath commented 6 years ago

:tada: This PR is included in version 10.2.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: