tusharmath / observable-air

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

test(switch): add benchmarks #143

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,000 (±1.18%) │ 84      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 679 (±6.28%)   │ 54      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 181 (±1.18%)   │ 81      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 49 (±1.88%)    │ 76      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 499 (±2.9%)    │ 83      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 5,245 (±6.36%) │ 65      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 1,927 (±1.55%) │ 87      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 88.973% when pulling fb914cbec88c8a984f1b4edefcd2863791a1fef1 on switch-benchmarks into 435c9b4d0291c8fb435851eff1faadb187a121ad on master.

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,022 (±0.13%) │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 723 (±4.25%)   │ 60      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 101 (±0.41%)   │ 76      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 49 (±0.95%)    │ 76      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 519 (±0.92%)   │ 85      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 5,100 (±5.88%) │ 65      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 2,018 (±1.63%) │ 91      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.02%) to 88.952% when pulling 6735a4cb9b09b0a82f4929b6ea73881771e435e4 on switch-benchmarks into 435c9b4d0291c8fb435851eff1faadb187a121ad on master.