tusharmath / observable-air

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

refactor(main): expose only functional api #170

Closed tusharmath closed 7 years ago

tusharmath commented 7 years ago

fludic api is an overkill for this library

tusharmath commented 7 years ago

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

Node: v7.7.4 V8: 5.5.372.42

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 1,019 (±0.18%) │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 830 (±4.8%)    │ 67      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 166 (±0.77%)   │ 82      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 45 (±2.16%)    │ 70      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 484 (±2%)      │ 79      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 4,476 (±4.88%) │ 64      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 2,070 (±1.77%) │ 88      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage increased (+3.4%) to 86.998% when pulling 9837446812ccb986c4b84f6a7a6b44e0f47869e2 on remove-fluid into 49c32709848f42bdaca9b821150b1de661f8d013 on master.