tusharmath / observable-air

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

feat(main): export flatMap and switchMap operator #147

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.5.0 V8: 5.4.500.48

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 1,021 (±0.32%) │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 716 (±4.47%)   │ 59      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 161 (±2.21%)   │ 81      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 49 (±1.65%)    │ 76      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 493 (±2.38%)   │ 81      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 4,269 (±6.53%) │ 59      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 1,899 (±3.05%) │ 87      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.1%) to 88.93% when pulling cfdf1dc98d32b1530193e13dfa8bf4e0e50b48c5 on additional-ops into 76badfa346852574ca5ccf8f191541b0cf8aac54 on master.