tusharmath / observable-air

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

refactor(events): remove initializations from constructor #169

Closed tusharmath closed 7 years ago

tusharmath commented 7 years ago

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

Node: v7.7.3 V8: 5.5.372.41

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 1,018 (±0.64%) │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 836 (±5.65%)   │ 49      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 169 (±0.25%)   │ 84      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 48 (±0.18%)    │ 74      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 517 (±1.13%)   │ 85      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 4,957 (±4.62%) │ 67      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 2,102 (±1.18%) │ 88      │
└──────────────────────────────────────┴────────────────┴─────────┘
tusharmath commented 7 years ago

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

Node: v7.7.3 V8: 5.5.372.41

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 1,018 (±0.47%) │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 758 (±6.48%)   │ 58      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 168 (±0.48%)   │ 83      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 49 (±0.2%)     │ 75      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 517 (±0.26%)   │ 85      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 4,271 (±5.24%) │ 63      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 2,109 (±1.33%) │ 90      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 83.602% when pulling 4fc5173831114240339cbd1759a9614c530f0ce3 on refactor-names into d04b254b7e97d33a00eaf597f96b02debc4c9968 on master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 83.602% when pulling 4fc5173831114240339cbd1759a9614c530f0ce3 on refactor-names into d04b254b7e97d33a00eaf597f96b02debc4c9968 on master.

tusharmath commented 7 years ago

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

Node: v7.7.3 V8: 5.5.372.41

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 1,014 (±0.71%) │ 85      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 817 (±6.12%)   │ 63      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 162 (±2.8%)    │ 81      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 46 (±1.54%)    │ 72      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 519 (±1%)      │ 85      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 4,370 (±5.59%) │ 63      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 2,085 (±2.73%) │ 87      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 83.602% when pulling df35b35ac9fd316abba01a7d127c4c0a7a8eae76 on refactor-names into d04b254b7e97d33a00eaf597f96b02debc4c9968 on master.

tusharmath commented 7 years ago

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

Node: v7.7.3 V8: 5.5.372.41

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 1,014 (±0.61%) │ 85      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 863 (±5.56%)   │ 65      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 169 (±0.28%)   │ 83      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 47 (±1.3%)     │ 73      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 526 (±0.15%)   │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 5,037 (±3.77%) │ 66      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 2,177 (±0.48%) │ 89      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 83.602% when pulling 4611ccdeb6ce05da6028732da546600740661d63 on refactor-names into d04b254b7e97d33a00eaf597f96b02debc4c9968 on master.

tusharmath commented 7 years ago

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

Node: v7.7.3 V8: 5.5.372.41

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 742 (±5.24%)   │ 66      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 661 (±9.28%)   │ 54      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 56 (±5.43%)    │ 72      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 22 (±2%)       │ 54      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 270 (±2.13%)   │ 54      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 2,040 (±8.15%) │ 32      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 1,579 (±8.87%) │ 71      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 83.602% when pulling 7fc37b2e13aed143cd0c7cf241cb0d4be75419f3 on refactor-names into d04b254b7e97d33a00eaf597f96b02debc4c9968 on master.

tusharmath commented 7 years ago

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

Node: v7.7.3 V8: 5.5.372.41

┌──────────────────────────────────────┬────────────────┬─────────┐
│ name                                 │ ops/sec        │ samples │
├──────────────────────────────────────┼────────────────┼─────────┤
│ create                               │ 1,007 (±0.56%) │ 85      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> debounce                     │ 804 (±4.93%)   │ 61      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> map -> reduce                │ 169 (±0.21%)   │ 84      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> scan -> reduce               │ 48 (±0.84%)    │ 74      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ file -> takeN(0, n/10)               │ 527 (±0.16%)   │ 86      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest │ 4,613 (±4.34%) │ 68      │
├──────────────────────────────────────┼────────────────┼─────────┤
│ tryCatch                             │ 2,052 (±1.34%) │ 90      │
└──────────────────────────────────────┴────────────────┴─────────┘
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 83.602% when pulling 9db06e906af2ba0a91a081ab6965ac08fab2d3f3 on refactor-names into d04b254b7e97d33a00eaf597f96b02debc4c9968 on master.