-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dynamic connectable #672
Conversation
Warning Rate limit exceeded@victimsnino has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 1 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
BENCHMARK RESULTS (AUTOGENERATED)
|
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
Subscribe empty callbacks to empty observable | 303.31 ns | 2.16 ns | 2.18 ns | 0.99 |
Subscribe empty callbacks to empty observable via pipe operator | 307.36 ns | 2.16 ns | 2.16 ns | 1.00 |
Sources
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
from array of 1 - create + subscribe + immediate | 682.57 ns | 0.31 ns | 0.31 ns | 1.01 |
from array of 1 - create + subscribe + current_thread | 1045.71 ns | 3.71 ns | 3.71 ns | 1.00 |
concat_as_source of just(1 immediate) create + subscribe | 2260.98 ns | 142.92 ns | 141.81 ns | 1.01 |
defer from array of 1 - defer + create + subscribe + immediate | 729.59 ns | 0.31 ns | 0.31 ns | 1.00 |
interval - interval + take(3) + subscribe + immediate | 2152.42 ns | 59.27 ns | 59.19 ns | 1.00 |
interval - interval + take(3) + subscribe + current_thread | 3003.02 ns | 32.42 ns | 32.40 ns | 1.00 |
from array of 1 - create + as_blocking + subscribe + new_thread | 29449.97 ns | 28143.21 ns | 27847.33 ns | 1.01 |
from array of 1000 - create + as_blocking + subscribe + new_thread | 38476.00 ns | 52564.00 ns | 51850.18 ns | 1.01 |
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 3548.84 ns | 216.84 ns | 216.15 ns | 1.00 |
Filtering Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take(1)+subscribe | 1077.57 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+filter(true)+subscribe | 871.80 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,2)+skip(1)+subscribe | 967.50 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,1,2)+distinct_until_changed()+subscribe | 848.71 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,2)+first()+subscribe | 1233.47 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,2)+last()+subscribe | 907.00 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+take_last(1)+subscribe | 1114.89 ns | 18.20 ns | 18.53 ns | 0.98 |
immediate_just(1,2,3)+element_at(1)+subscribe | 819.17 ns | 0.31 ns | 0.31 ns | 1.00 |
Schedulers
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate scheduler create worker + schedule | 261.99 ns | 2.18 ns | 2.16 ns | 1.01 |
current_thread scheduler create worker + schedule | 366.88 ns | 5.86 ns | 5.87 ns | 1.00 |
current_thread scheduler create worker + schedule + recursive schedule | 811.23 ns | 55.64 ns | 55.38 ns | 1.00 |
Transforming Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+map(v*2)+subscribe | 857.77 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+scan(10, std::plus)+subscribe | 907.46 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+flat_map(immediate_just(v*2))+subscribe | 2378.25 ns | 194.67 ns | 196.33 ns | 0.99 |
immediate_just+buffer(2)+subscribe | 1552.55 ns | 14.23 ns | 14.20 ns | 1.00 |
immediate_just+window(2)+subscribe + subscsribe inner | 2419.40 ns | 1361.25 ns | 1413.35 ns | 0.96 |
Conditional Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take_while(false)+subscribe | 827.64 ns | - | - | 0.00 |
immediate_just+take_while(true)+subscribe | 836.04 ns | 0.31 ns | 0.31 ns | 1.00 |
Utility Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(1)+subscribe_on(immediate)+subscribe | 1967.47 ns | 0.31 ns | 0.31 ns | 1.00 |
Combining Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe | 3432.95 ns | 238.79 ns | 237.79 ns | 1.00 |
immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 3673.08 ns | 192.09 ns | 191.43 ns | 1.00 |
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 179.71 ns | 182.79 ns | 0.98 |
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 3587.26 ns | 1223.68 ns | 1264.00 ns | 0.97 |
immediate_just(1) + zip(immediate_just(2)) + subscribe | 2128.23 ns | 226.43 ns | 230.63 ns | 0.98 |
Subjects
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
publish_subject with 1 observer - on_next | 34.49 ns | 14.64 ns | 14.64 ns | 1.00 |
subscribe 100 observers to publish_subject | 197614.60 ns | 16210.53 ns | 16752.64 ns | 0.97 |
100 on_next to 100 observers to publish_subject | 40530.00 ns | 18986.32 ns | 17086.95 ns | 1.11 |
Scenarios
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
basic sample | 1355.98 ns | 12.66 ns | 12.66 ns | 1.00 |
basic sample with immediate scheduler | 1382.63 ns | 5.55 ns | 5.55 ns | 1.00 |
Aggregating Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+reduce(10, std::plus)+subscribe | 906.60 ns | 0.31 ns | 0.31 ns | 1.00 |
Error Handling Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
create(on_next(1), on_error())+on_error_resume_next(immediate_just(2)))+subscribe | 2099.31 ns | 922.50 ns | 915.10 ns | 1.01 |
create(on_error())+retry(1)+subscribe | 598.79 ns | 120.79 ns | 120.98 ns | 1.00 |
ci-macos
General
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
Subscribe empty callbacks to empty observable | 1387.67 ns | 5.50 ns | 3.96 ns | 1.39 |
Subscribe empty callbacks to empty observable via pipe operator | 1290.31 ns | 5.60 ns | 3.90 ns | 1.44 |
Sources
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
from array of 1 - create + subscribe + immediate | 1931.21 ns | 0.24 ns | 0.23 ns | 1.03 |
from array of 1 - create + subscribe + current_thread | 2412.44 ns | 32.87 ns | 33.22 ns | 0.99 |
concat_as_source of just(1 immediate) create + subscribe | 6623.72 ns | 513.39 ns | 423.24 ns | 1.21 |
defer from array of 1 - defer + create + subscribe + immediate | 2268.52 ns | 0.28 ns | 0.23 ns | 1.19 |
interval - interval + take(3) + subscribe + immediate | 4947.41 ns | 132.56 ns | 114.84 ns | 1.15 |
interval - interval + take(3) + subscribe + current_thread | 5997.49 ns | 96.37 ns | 95.55 ns | 1.01 |
from array of 1 - create + as_blocking + subscribe + new_thread | 82437.50 ns | 87920.73 ns | 83864.00 ns | 1.05 |
from array of 1000 - create + as_blocking + subscribe + new_thread | 88294.36 ns | 90343.69 ns | 87486.92 ns | 1.03 |
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 9747.75 ns | 724.90 ns | 617.39 ns | 1.17 |
Filtering Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take(1)+subscribe | 3004.32 ns | 0.24 ns | 0.23 ns | 1.05 |
immediate_just+filter(true)+subscribe | 2205.95 ns | 0.24 ns | 0.23 ns | 1.05 |
immediate_just(1,2)+skip(1)+subscribe | 2900.07 ns | 0.24 ns | 0.23 ns | 1.05 |
immediate_just(1,1,2)+distinct_until_changed()+subscribe | 2215.24 ns | 0.49 ns | 0.46 ns | 1.08 |
immediate_just(1,2)+first()+subscribe | 3390.12 ns | 0.24 ns | 0.23 ns | 1.03 |
immediate_just(1,2)+last()+subscribe | 2487.14 ns | 0.24 ns | 0.23 ns | 1.05 |
immediate_just+take_last(1)+subscribe | 3189.10 ns | 0.24 ns | 0.23 ns | 1.05 |
immediate_just(1,2,3)+element_at(1)+subscribe | 2234.44 ns | 0.24 ns | 0.23 ns | 1.07 |
Schedulers
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate scheduler create worker + schedule | 845.89 ns | 4.14 ns | 3.98 ns | 1.04 |
current_thread scheduler create worker + schedule | 1183.06 ns | 36.49 ns | 34.67 ns | 1.05 |
current_thread scheduler create worker + schedule + recursive schedule | 1976.12 ns | 203.17 ns | 193.93 ns | 1.05 |
Transforming Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+map(v*2)+subscribe | 2104.98 ns | 4.10 ns | 4.33 ns | 0.95 |
immediate_just+scan(10, std::plus)+subscribe | 2385.25 ns | 0.47 ns | 0.46 ns | 1.03 |
immediate_just+flat_map(immediate_just(v*2))+subscribe | 5608.34 ns | 530.88 ns | 513.16 ns | 1.03 |
immediate_just+buffer(2)+subscribe | 2652.91 ns | 71.92 ns | 64.05 ns | 1.12 |
immediate_just+window(2)+subscribe + subscsribe inner | 5750.76 ns | 2566.22 ns | 2378.34 ns | 1.08 |
Conditional Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take_while(false)+subscribe | 2045.87 ns | - | - | 0.00 |
immediate_just+take_while(true)+subscribe | 2054.64 ns | 0.23 ns | 0.23 ns | 1.00 |
Utility Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(1)+subscribe_on(immediate)+subscribe | 4808.42 ns | 5.01 ns | 6.14 ns | 0.82 |
Combining Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe | 7367.75 ns | 595.05 ns | 574.90 ns | 1.04 |
immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 8294.77 ns | 506.21 ns | 503.06 ns | 1.01 |
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 577.35 ns | 565.54 ns | 1.02 |
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 7761.73 ns | 1869.35 ns | 1860.83 ns | 1.00 |
immediate_just(1) + zip(immediate_just(2)) + subscribe | 4989.05 ns | 905.53 ns | 910.37 ns | 0.99 |
Subjects
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
publish_subject with 1 observer - on_next | 80.28 ns | 51.68 ns | 48.74 ns | 1.06 |
subscribe 100 observers to publish_subject | 361207.33 ns | 42780.84 ns | 40672.30 ns | 1.05 |
100 on_next to 100 observers to publish_subject | 62914.75 ns | 22021.32 ns | 18799.84 ns | 1.17 |
Scenarios
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
basic sample | 2971.64 ns | 78.04 ns | 70.95 ns | 1.10 |
basic sample with immediate scheduler | 2890.66 ns | 20.23 ns | 18.73 ns | 1.08 |
Aggregating Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+reduce(10, std::plus)+subscribe | 2488.20 ns | 0.24 ns | 0.24 ns | 1.04 |
Error Handling Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
create(on_next(1), on_error())+on_error_resume_next(immediate_just(2)))+subscribe | 7382.17 ns | 4442.20 ns | 3920.39 ns | 1.13 |
create(on_error())+retry(1)+subscribe | 1942.10 ns | 402.55 ns | 363.62 ns | 1.11 |
ci-ubuntu-clang
General
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
Subscribe empty callbacks to empty observable | 267.04 ns | 0.88 ns | 0.88 ns | 1.00 |
Subscribe empty callbacks to empty observable via pipe operator | 266.88 ns | 0.88 ns | 0.88 ns | 1.00 |
Sources
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
from array of 1 - create + subscribe + immediate | 561.01 ns | 0.31 ns | 0.31 ns | 1.00 |
from array of 1 - create + subscribe + current_thread | 803.03 ns | 4.09 ns | 4.01 ns | 1.02 |
concat_as_source of just(1 immediate) create + subscribe | 2314.19 ns | 181.91 ns | 179.53 ns | 1.01 |
defer from array of 1 - defer + create + subscribe + immediate | 770.53 ns | 0.31 ns | 0.31 ns | 1.00 |
interval - interval + take(3) + subscribe + immediate | 2213.41 ns | 58.37 ns | 58.26 ns | 1.00 |
interval - interval + take(3) + subscribe + current_thread | 3167.93 ns | 30.88 ns | 30.86 ns | 1.00 |
from array of 1 - create + as_blocking + subscribe + new_thread | 29321.83 ns | 27359.58 ns | 27665.26 ns | 0.99 |
from array of 1000 - create + as_blocking + subscribe + new_thread | 38628.89 ns | 35284.59 ns | 34543.58 ns | 1.02 |
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 3660.65 ns | 308.19 ns | 306.54 ns | 1.01 |
Filtering Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take(1)+subscribe | 1139.67 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+filter(true)+subscribe | 847.02 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,2)+skip(1)+subscribe | 1076.08 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,1,2)+distinct_until_changed()+subscribe | 862.08 ns | 0.33 ns | 0.31 ns | 1.06 |
immediate_just(1,2)+first()+subscribe | 1394.80 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,2)+last()+subscribe | 1036.69 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+take_last(1)+subscribe | 1201.01 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just(1,2,3)+element_at(1)+subscribe | 865.93 ns | 0.32 ns | 0.31 ns | 1.03 |
Schedulers
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate scheduler create worker + schedule | 282.88 ns | 0.88 ns | 0.88 ns | 1.00 |
current_thread scheduler create worker + schedule | 392.96 ns | 4.33 ns | 4.32 ns | 1.00 |
current_thread scheduler create worker + schedule + recursive schedule | 849.82 ns | 55.71 ns | 56.01 ns | 0.99 |
Transforming Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+map(v*2)+subscribe | 843.71 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+scan(10, std::plus)+subscribe | 958.86 ns | 0.31 ns | 0.31 ns | 1.00 |
immediate_just+flat_map(immediate_just(v*2))+subscribe | 2254.45 ns | 230.11 ns | 228.06 ns | 1.01 |
immediate_just+buffer(2)+subscribe | 1529.18 ns | 13.89 ns | 13.59 ns | 1.02 |
immediate_just+window(2)+subscribe + subscsribe inner | 2474.97 ns | 960.72 ns | 958.86 ns | 1.00 |
Conditional Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take_while(false)+subscribe | 831.24 ns | - | - | 0.00 |
immediate_just+take_while(true)+subscribe | 867.21 ns | 0.31 ns | 0.33 ns | 0.95 |
Utility Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(1)+subscribe_on(immediate)+subscribe | 1999.07 ns | 0.31 ns | 0.31 ns | 1.00 |
Combining Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe | 3272.51 ns | 290.26 ns | 290.62 ns | 1.00 |
immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 3753.58 ns | 219.01 ns | 220.80 ns | 0.99 |
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 202.06 ns | 199.45 ns | 1.01 |
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 3422.47 ns | 850.40 ns | 842.46 ns | 1.01 |
immediate_just(1) + zip(immediate_just(2)) + subscribe | 2232.64 ns | 199.16 ns | 195.76 ns | 1.02 |
Subjects
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
publish_subject with 1 observer - on_next | 52.28 ns | 18.21 ns | 17.49 ns | 1.04 |
subscribe 100 observers to publish_subject | 210095.00 ns | 15983.85 ns | 15993.04 ns | 1.00 |
100 on_next to 100 observers to publish_subject | 38663.71 ns | 20939.55 ns | 20908.55 ns | 1.00 |
Scenarios
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
basic sample | 1300.02 ns | 11.42 ns | 11.42 ns | 1.00 |
basic sample with immediate scheduler | 1286.68 ns | 6.17 ns | 6.17 ns | 1.00 |
Aggregating Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+reduce(10, std::plus)+subscribe | 988.95 ns | 0.31 ns | 0.31 ns | 1.00 |
Error Handling Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
create(on_next(1), on_error())+on_error_resume_next(immediate_just(2)))+subscribe | 2188.56 ns | 1006.20 ns | 1004.32 ns | 1.00 |
create(on_error())+retry(1)+subscribe | 652.01 ns | 157.21 ns | 156.46 ns | 1.00 |
ci-windows
General
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
Subscribe empty callbacks to empty observable | 592.94 ns | 4.94 ns | 4.94 ns | 1.00 |
Subscribe empty callbacks to empty observable via pipe operator | 609.84 ns | 4.94 ns | 4.94 ns | 1.00 |
Sources
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
from array of 1 - create + subscribe + immediate | 1202.01 ns | 9.64 ns | 9.58 ns | 1.01 |
from array of 1 - create + subscribe + current_thread | 1509.19 ns | 17.69 ns | 17.70 ns | 1.00 |
concat_as_source of just(1 immediate) create + subscribe | 3784.15 ns | 241.07 ns | 231.20 ns | 1.04 |
defer from array of 1 - defer + create + subscribe + immediate | 1238.08 ns | 9.42 ns | 9.44 ns | 1.00 |
interval - interval + take(3) + subscribe + immediate | 3285.44 ns | 144.56 ns | 144.49 ns | 1.00 |
interval - interval + take(3) + subscribe + current_thread | 3471.88 ns | 65.38 ns | 65.32 ns | 1.00 |
from array of 1 - create + as_blocking + subscribe + new_thread | 118544.44 ns | 110850.00 ns | 110630.00 ns | 1.00 |
from array of 1000 - create + as_blocking + subscribe + new_thread | 127088.89 ns | 129177.78 ns | 129066.67 ns | 1.00 |
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 5386.17 ns | 318.01 ns | 308.72 ns | 1.03 |
Filtering Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take(1)+subscribe | 1884.18 ns | 25.17 ns | 24.97 ns | 1.01 |
immediate_just+filter(true)+subscribe | 1357.64 ns | 24.05 ns | 24.05 ns | 1.00 |
immediate_just(1,2)+skip(1)+subscribe | 1828.82 ns | 23.45 ns | 23.44 ns | 1.00 |
immediate_just(1,1,2)+distinct_until_changed()+subscribe | 1669.67 ns | 26.25 ns | 26.23 ns | 1.00 |
immediate_just(1,2)+first()+subscribe | 2111.51 ns | 23.76 ns | 23.74 ns | 1.00 |
immediate_just(1,2)+last()+subscribe | 2122.55 ns | 24.67 ns | 24.67 ns | 1.00 |
immediate_just+take_last(1)+subscribe | 2087.06 ns | 69.97 ns | 69.57 ns | 1.01 |
immediate_just(1,2,3)+element_at(1)+subscribe | 1391.12 ns | 26.54 ns | 26.59 ns | 1.00 |
Schedulers
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate scheduler create worker + schedule | 502.00 ns | 6.17 ns | 6.17 ns | 1.00 |
current_thread scheduler create worker + schedule | 681.51 ns | 14.39 ns | 14.50 ns | 0.99 |
current_thread scheduler create worker + schedule + recursive schedule | 1435.79 ns | 103.30 ns | 100.92 ns | 1.02 |
Transforming Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+map(v*2)+subscribe | 1345.07 ns | 24.35 ns | 24.36 ns | 1.00 |
immediate_just+scan(10, std::plus)+subscribe | 1498.98 ns | 26.53 ns | 26.51 ns | 1.00 |
immediate_just+flat_map(immediate_just(v*2))+subscribe | 3534.62 ns | 289.00 ns | 270.46 ns | 1.07 |
immediate_just+buffer(2)+subscribe | 2680.14 ns | 68.91 ns | 68.99 ns | 1.00 |
immediate_just+window(2)+subscribe + subscsribe inner | 4137.37 ns | 1358.84 ns | 1306.47 ns | 1.04 |
Conditional Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+take_while(false)+subscribe | 1669.40 ns | 23.12 ns | 23.12 ns | 1.00 |
immediate_just+take_while(true)+subscribe | 1376.38 ns | 24.06 ns | 24.05 ns | 1.00 |
Utility Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(1)+subscribe_on(immediate)+subscribe | 3259.48 ns | 11.10 ns | 11.10 ns | 1.00 |
Combining Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe | 5134.29 ns | 312.05 ns | 311.75 ns | 1.00 |
immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 5507.69 ns | 281.66 ns | 263.63 ns | 1.07 |
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 310.91 ns | 300.90 ns | 1.03 |
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 5314.42 ns | 982.56 ns | 932.41 ns | 1.05 |
immediate_just(1) + zip(immediate_just(2)) + subscribe | 3636.08 ns | 596.75 ns | 552.10 ns | 1.08 |
Subjects
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
publish_subject with 1 observer - on_next | 37.27 ns | 21.72 ns | 20.12 ns | 1.08 |
subscribe 100 observers to publish_subject | 275250.00 ns | 31202.94 ns | 27967.44 ns | 1.12 |
100 on_next to 100 observers to publish_subject | 54966.67 ns | 32624.24 ns | 33034.38 ns | 0.99 |
Scenarios
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
basic sample | 1909.29 ns | 101.90 ns | 101.58 ns | 1.00 |
basic sample with immediate scheduler | 2280.33 ns | 74.11 ns | 73.75 ns | 1.00 |
Aggregating Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
immediate_just+reduce(10, std::plus)+subscribe | 1507.25 ns | 24.68 ns | 24.66 ns | 1.00 |
Error Handling Operators
name | rxcpp | rpp | prev rpp | ratio |
---|---|---|---|---|
create(on_next(1), on_error())+on_error_resume_next(immediate_just(2)))+subscribe | 2208.99 ns | 253.63 ns | 245.19 ns | 1.03 |
create(on_error())+retry(1)+subscribe | 1563.14 ns | 192.77 ns | 192.11 ns | 1.00 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2 #672 +/- ##
=======================================
Coverage 98.46% 98.47%
=======================================
Files 154 155 +1
Lines 9671 9683 +12
=======================================
+ Hits 9523 9535 +12
Misses 148 148 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
#670