tusharmath / observable-air

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

refactor(debounce): implement Operator #145

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,026 (±0.09%) │ 87      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 754 (±5.51%)   │ 57      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 169 (±0.18%)   │ 84      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 51 (±0.32%)    │ 78      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 525 (±0.18%)   │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 5,344 (±6.11%) │ 66      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 1,890 (±0.15%) │ 92      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.03%) to 88.92% when pulling 287bc01ec00e79d67c9f901bd16b9e5f12698ac9 on debounce-operator-refactor into babffc4e7a4e926a1c264d4c805402d6a258498f on master.