victimsnino / ReactivePlusPlus

Implementation of async observable/observer (Reactive Programming) in C++ with care about performance and templates in mind in ReactiveX approach
https://victimsnino.github.io/ReactivePlusPlus/v2/docs/html/index.html
Boost Software License 1.0
246 stars 28 forks source link

Try limit grpc threads #631

Closed victimsnino closed 2 months ago

victimsnino commented 2 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 2 months ago
Walkthrough ## Walkthrough The changes involve the removal of unnecessary threading in the test cases for both the asynchronous client and server. The previous implementation used separate threads for certain operations, which have now been simplified to direct calls in the main thread. Additionally, a new `execution` property with a timeout setting was added to the `CMakePresets.json` configuration to enhance test execution control. ## Changes | Files | Change Summary | |-----------------------------------------|-----------------------------------------------------------------------------------------------------| | `src/tests/rppgrpc/test_async_client.cpp`, `src/tests/rppgrpc/test_async_server.cpp` | Removed unnecessary threading in test cases, simplifying control flow by executing operations directly in the main thread. | | `CMakePresets.json` | Added `execution` property with `timeout: 120` to `ci-tests-debug` configuration for improved test execution control. | ## Sequence Diagram(s) ```mermaid sequenceDiagram participant Client participant Server Client->>Server: Initiate Request Server->>Client: Send Response Client->>Server: Writes Done Server->>Client: Finish Operation Client->>Server: Wait for Completion ``` > 🐰 In the meadow, I hop with glee, > No threads to tangle, just you and me! > Testing is simpler, clear as the sky, > With each little change, we reach for the high! > Let's celebrate this code so bright, > A joyful dance in the soft moonlight! 🌙✨

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?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` 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) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
github-actions[bot] commented 2 months ago

BENCHMARK RESULTS (AUTOGENERATED)

## ci-ubuntu-gcc
### General name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- Subscribe empty callbacks to empty observable | 300.29 ns | 2.16 ns| 2.19 ns | 0.99 Subscribe empty callbacks to empty observable via pipe operator | 299.50 ns | 2.17 ns| 2.16 ns | 1.00
### Sources name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- from array of 1 - create + subscribe + immediate | 685.95 ns | 0.31 ns| 0.31 ns | 1.00 from array of 1 - create + subscribe + current_thread | 1048.05 ns | 3.71 ns| 3.70 ns | 1.00 concat_as_source of just(1 immediate) create + subscribe | 2221.46 ns | 101.55 ns| 102.55 ns | 0.99 defer from array of 1 - defer + create + subscribe + immediate | 725.44 ns | 0.31 ns| 0.31 ns | 1.00 interval - interval + take(3) + subscribe + immediate | 2186.41 ns | 59.50 ns| 59.23 ns | 1.00 interval - interval + take(3) + subscribe + current_thread | 3005.33 ns | 32.40 ns| 32.46 ns | 1.00 from array of 1 - create + as_blocking + subscribe + new_thread | 30205.65 ns | 28766.44 ns| 28456.56 ns | 1.01 from array of 1000 - create + as_blocking + subscribe + new_thread | 41013.08 ns | 51096.63 ns| 52557.30 ns | 0.97 concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 3481.87 ns | 120.31 ns| 123.28 ns | 0.98
### Filtering Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take(1)+subscribe | 1066.78 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just+filter(true)+subscribe | 864.54 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just(1,2)+skip(1)+subscribe | 983.42 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just(1,1,2)+distinct_until_changed()+subscribe | 850.99 ns | 0.32 ns| 0.31 ns | 1.03 immediate_just(1,2)+first()+subscribe | 1212.94 ns | 0.79 ns| 0.62 ns | 1.28 immediate_just(1,2)+last()+subscribe | 909.33 ns | 0.31 ns| 0.31 ns | 1.01 immediate_just+take_last(1)+subscribe | 1149.24 ns | 17.60 ns| 17.44 ns | 1.01 immediate_just(1,2,3)+element_at(1)+subscribe | 838.77 ns | 0.31 ns| 0.31 ns | 1.00
### Schedulers name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate scheduler create worker + schedule | 263.82 ns | 2.16 ns| 2.16 ns | 1.00 current_thread scheduler create worker + schedule | 366.37 ns | 5.56 ns| 5.56 ns | 1.00 current_thread scheduler create worker + schedule + recursive schedule | 814.87 ns | 56.57 ns| 56.69 ns | 1.00
### Transforming Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+map(v*2)+subscribe | 877.19 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just+scan(10, std::plus)+subscribe | 914.38 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just+flat_map(immediate_just(v*2))+subscribe | 2394.75 ns | 174.33 ns| 161.37 ns | 1.08 immediate_just+buffer(2)+subscribe | 1522.39 ns | 13.59 ns| 13.59 ns | 1.00 immediate_just+window(2)+subscribe + subscsribe inner | 2445.86 ns | 1121.62 ns| 1104.02 ns | 1.02
### Conditional Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take_while(false)+subscribe | 820.18 ns | -| - | 0.00 immediate_just+take_while(true)+subscribe | 904.11 ns | 0.31 ns| 0.31 ns | 1.00
### Utility Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just(1)+subscribe_on(immediate)+subscribe | 1978.94 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 | 3406.01 ns | 178.17 ns| 175.38 ns | 1.02 immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 3686.39 ns | 170.85 ns| 171.27 ns | 1.00 immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 143.58 ns| 137.19 ns | 1.05 immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 3555.07 ns | 942.21 ns| 945.80 ns | 1.00 immediate_just(1) + zip(immediate_just(2)) + subscribe | 2086.36 ns | 204.02 ns| 201.35 ns | 1.01
### Subjects name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- publish_subject with 1 observer - on_next | 34.60 ns | 14.59 ns| 14.70 ns | 0.99 subscribe 100 observers to publish_subject | 200286.60 ns | 15751.45 ns| 15229.20 ns | 1.03 100 on_next to 100 observers to publish_subject | 28487.88 ns | 20162.04 ns| 20165.25 ns | 1.00
### Scenarios name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- basic sample | 1440.77 ns | 13.90 ns| 13.90 ns | 1.00 basic sample with immediate scheduler | 1427.61 ns | 5.55 ns| 5.55 ns | 1.00
### Aggregating Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+reduce(10, std::plus)+subscribe | 902.00 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 | 2050.86 ns | 1003.29 ns| 1019.12 ns | 0.98 create(on_error())+retry(1)+subscribe | 583.32 ns | 109.38 ns| 105.67 ns | 1.04
## ci-macos
### General name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- Subscribe empty callbacks to empty observable | 1327.32 ns | 5.52 ns| 4.68 ns | 1.18 Subscribe empty callbacks to empty observable via pipe operator | 1330.60 ns | 5.45 ns| 4.76 ns | 1.15
### Sources name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- from array of 1 - create + subscribe + immediate | 2786.14 ns | 0.32 ns| 0.26 ns | 1.23 from array of 1 - create + subscribe + current_thread | 3435.43 ns | 46.73 ns| 38.78 ns | 1.20 concat_as_source of just(1 immediate) create + subscribe | 7666.94 ns | 457.30 ns| 398.49 ns | 1.15 defer from array of 1 - defer + create + subscribe + immediate | 2889.12 ns | 0.35 ns| 0.28 ns | 1.24 interval - interval + take(3) + subscribe + immediate | 6953.36 ns | 165.84 ns| 135.56 ns | 1.22 interval - interval + take(3) + subscribe + current_thread | 8871.54 ns | 131.55 ns| 114.18 ns | 1.15 from array of 1 - create + as_blocking + subscribe + new_thread | 132406.12 ns | 130167.67 ns| 94184.33 ns | 1.38 from array of 1000 - create + as_blocking + subscribe + new_thread | 156003.67 ns | 139412.14 ns| 104473.90 ns | 1.33 concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 12211.09 ns | 567.98 ns| 454.98 ns | 1.25
### Filtering Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take(1)+subscribe | 10272.95 ns | 1.03 ns| 0.23 ns | 4.40 immediate_just+filter(true)+subscribe | 2861.15 ns | 0.56 ns| 0.23 ns | 2.40 immediate_just(1,2)+skip(1)+subscribe | 28279.98 ns | 0.32 ns| 0.23 ns | 1.38 immediate_just(1,1,2)+distinct_until_changed()+subscribe | 9426.36 ns | 2.67 ns| 0.45 ns | 6.00 immediate_just(1,2)+first()+subscribe | 4389.26 ns | 0.32 ns| 0.23 ns | 1.38 immediate_just(1,2)+last()+subscribe | 3521.97 ns | 0.34 ns| 0.23 ns | 1.46 immediate_just+take_last(1)+subscribe | 24166.93 ns | 2.15 ns| 0.23 ns | 9.24 immediate_just(1,2,3)+element_at(1)+subscribe | 8315.57 ns | 0.43 ns| 0.22 ns | 1.94
### Schedulers name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate scheduler create worker + schedule | 1331.70 ns | 6.43 ns| 4.94 ns | 1.30 current_thread scheduler create worker + schedule | 1618.19 ns | 50.86 ns| 44.18 ns | 1.15 current_thread scheduler create worker + schedule + recursive schedule | 2749.04 ns | 277.84 ns| 227.40 ns | 1.22
### Transforming Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+map(v*2)+subscribe | 2934.46 ns | 5.89 ns| 4.24 ns | 1.39 immediate_just+scan(10, std::plus)+subscribe | 3230.89 ns | 0.65 ns| 0.47 ns | 1.39 immediate_just+flat_map(immediate_just(v*2))+subscribe | 7335.53 ns | 558.31 ns| 403.06 ns | 1.39 immediate_just+buffer(2)+subscribe | 3582.44 ns | 89.79 ns| 65.07 ns | 1.38 immediate_just+window(2)+subscribe + subscsribe inner | 20567.15 ns | 15510.68 ns| 2389.81 ns | 6.49
### Conditional Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take_while(false)+subscribe | 3210.86 ns | -| - | 0.00 immediate_just+take_while(true)+subscribe | 3028.04 ns | 0.34 ns| 0.24 ns | 1.44
### Utility Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just(1)+subscribe_on(immediate)+subscribe | 6655.00 ns | 32.15 ns| 4.90 ns | 6.56
### Combining Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe | 45033.56 ns | 617.13 ns| 486.11 ns | 1.27 immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 44311.04 ns | 1807.07 ns| 487.68 ns | 3.71 immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 2646.83 ns| 497.38 ns | 5.32 immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 57304.04 ns | 15939.79 ns| 1989.66 ns | 8.01 immediate_just(1) + zip(immediate_just(2)) + subscribe | 7771.64 ns | 3158.58 ns| 874.02 ns | 3.61
### Subjects name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- publish_subject with 1 observer - on_next | 689.86 ns | 189.23 ns| 47.81 ns | 3.96 subscribe 100 observers to publish_subject | 3830093.00 ns | 238406.60 ns| 40598.67 ns | 5.87 100 on_next to 100 observers to publish_subject | 100359.43 ns | 50680.00 ns| 18391.88 ns | 2.76
### Scenarios name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- basic sample | 4187.73 ns | 131.22 ns| 65.19 ns | 2.01 basic sample with immediate scheduler | 3816.70 ns | 27.09 ns| 18.45 ns | 1.47
### Aggregating Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+reduce(10, std::plus)+subscribe | 3266.36 ns | 0.33 ns| 0.22 ns | 1.46
### Error Handling Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- create(on_next(1), on_error())+on_error_resume_next(immediate_just(2)))+subscribe | 8890.34 ns | 5721.64 ns| 4175.74 ns | 1.37 create(on_error())+retry(1)+subscribe | 5572.34 ns | 395.42 ns| 286.48 ns | 1.38
## ci-ubuntu-clang
### General name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- Subscribe empty callbacks to empty observable | 266.77 ns | 1.56 ns| 1.55 ns | 1.01 Subscribe empty callbacks to empty observable via pipe operator | 274.49 ns | 1.56 ns| 1.54 ns | 1.01
### Sources name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- from array of 1 - create + subscribe + immediate | 557.82 ns | 0.42 ns| 0.31 ns | 1.35 from array of 1 - create + subscribe + current_thread | 803.42 ns | 4.33 ns| 4.33 ns | 1.00 concat_as_source of just(1 immediate) create + subscribe | 3455.24 ns | 198.37 ns| 130.39 ns | 1.52 defer from array of 1 - defer + create + subscribe + immediate | 776.21 ns | 0.31 ns| 0.31 ns | 1.00 interval - interval + take(3) + subscribe + immediate | 2228.66 ns | 58.31 ns| 58.31 ns | 1.00 interval - interval + take(3) + subscribe + current_thread | 3174.77 ns | 30.88 ns| 30.88 ns | 1.00 from array of 1 - create + as_blocking + subscribe + new_thread | 29425.56 ns | 27710.73 ns| 28624.20 ns | 0.97 from array of 1000 - create + as_blocking + subscribe + new_thread | 38255.82 ns | 33296.60 ns| 34364.79 ns | 0.97 concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 5406.68 ns | 208.91 ns| 149.18 ns | 1.40
### Filtering Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take(1)+subscribe | 1147.33 ns | 0.31 ns| 0.31 ns | 0.99 immediate_just+filter(true)+subscribe | 849.64 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just(1,2)+skip(1)+subscribe | 1080.73 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just(1,1,2)+distinct_until_changed()+subscribe | 879.66 ns | 0.62 ns| 0.62 ns | 1.00 immediate_just(1,2)+first()+subscribe | 1370.36 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just(1,2)+last()+subscribe | 1009.00 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just+take_last(1)+subscribe | 1190.18 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just(1,2,3)+element_at(1)+subscribe | 866.16 ns | 0.31 ns| 0.31 ns | 1.00
### Schedulers name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate scheduler create worker + schedule | 284.97 ns | 1.56 ns| 1.54 ns | 1.01 current_thread scheduler create worker + schedule | 387.04 ns | 4.63 ns| 4.78 ns | 0.97 current_thread scheduler create worker + schedule + recursive schedule | 854.97 ns | 59.86 ns| 56.28 ns | 1.06
### Transforming Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+map(v*2)+subscribe | 842.33 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just+scan(10, std::plus)+subscribe | 965.54 ns | 0.31 ns| 0.31 ns | 1.00 immediate_just+flat_map(immediate_just(v*2))+subscribe | 2262.78 ns | 137.09 ns| 139.11 ns | 0.99 immediate_just+buffer(2)+subscribe | 1538.20 ns | 13.88 ns| 13.58 ns | 1.02 immediate_just+window(2)+subscribe + subscsribe inner | 2449.71 ns | 931.36 ns| 1002.15 ns | 0.93
### Conditional Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take_while(false)+subscribe | 851.73 ns | -| - | 0.00 immediate_just+take_while(true)+subscribe | 847.88 ns | 0.31 ns| 0.31 ns | 1.00
### Utility Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just(1)+subscribe_on(immediate)+subscribe | 1998.72 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 | 3275.41 ns | 158.32 ns| 158.49 ns | 1.00 immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 3798.41 ns | 146.58 ns| 146.38 ns | 1.00 immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 144.53 ns| 144.17 ns | 1.00 immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 3360.45 ns | 842.20 ns| 844.40 ns | 1.00 immediate_just(1) + zip(immediate_just(2)) + subscribe | 2217.33 ns | 201.71 ns| 203.18 ns | 0.99
### Subjects name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- publish_subject with 1 observer - on_next | 53.90 ns | 17.73 ns| 17.82 ns | 0.99 subscribe 100 observers to publish_subject | 210417.40 ns | 16109.25 ns| 16088.94 ns | 1.00 100 on_next to 100 observers to publish_subject | 42778.84 ns | 20771.54 ns| 20940.27 ns | 0.99
### Scenarios name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- basic sample | 1288.65 ns | 12.04 ns| 12.03 ns | 1.00 basic sample with immediate scheduler | 1280.42 ns | 5.86 ns| 5.86 ns | 1.00
### Aggregating Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+reduce(10, std::plus)+subscribe | 996.67 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 | 2176.32 ns | 1265.65 ns| 1246.25 ns | 1.02 create(on_error())+retry(1)+subscribe | 645.92 ns | 139.64 ns| 138.17 ns | 1.01
## ci-windows
### General name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- Subscribe empty callbacks to empty observable | 570.95 ns | 4.60 ns| 4.59 ns | 1.00 Subscribe empty callbacks to empty observable via pipe operator | 583.29 ns | 4.66 ns| 4.61 ns | 1.01
### Sources name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- from array of 1 - create + subscribe + immediate | 1153.60 ns | 9.71 ns| 9.71 ns | 1.00 from array of 1 - create + subscribe + current_thread | 1427.19 ns | 17.66 ns| 17.69 ns | 1.00 concat_as_source of just(1 immediate) create + subscribe | 3722.88 ns | 186.83 ns| 185.52 ns | 1.01 defer from array of 1 - defer + create + subscribe + immediate | 1192.92 ns | 9.43 ns| 9.39 ns | 1.00 interval - interval + take(3) + subscribe + immediate | 3591.93 ns | 144.34 ns| 144.47 ns | 1.00 interval - interval + take(3) + subscribe + current_thread | 3415.95 ns | 65.39 ns| 65.18 ns | 1.00 from array of 1 - create + as_blocking + subscribe + new_thread | 121328.57 ns | 113590.00 ns| 112500.00 ns | 1.01 from array of 1000 - create + as_blocking + subscribe + new_thread | 129987.50 ns | 134237.50 ns| 135511.11 ns | 0.99 concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe | 5465.83 ns | 223.30 ns| 216.05 ns | 1.03
### Filtering Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take(1)+subscribe | 1843.12 ns | 24.97 ns| 24.99 ns | 1.00 immediate_just+filter(true)+subscribe | 1338.69 ns | 24.05 ns| 24.05 ns | 1.00 immediate_just(1,2)+skip(1)+subscribe | 1737.65 ns | 23.46 ns| 23.44 ns | 1.00 immediate_just(1,1,2)+distinct_until_changed()+subscribe | 1357.24 ns | 26.52 ns| 26.24 ns | 1.01 immediate_just(1,2)+first()+subscribe | 2375.94 ns | 23.76 ns| 23.74 ns | 1.00 immediate_just(1,2)+last()+subscribe | 1821.56 ns | 24.68 ns| 24.67 ns | 1.00 immediate_just+take_last(1)+subscribe | 2015.95 ns | 71.28 ns| 69.76 ns | 1.02 immediate_just(1,2,3)+element_at(1)+subscribe | 1348.23 ns | 26.66 ns| 26.52 ns | 1.01
### Schedulers name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate scheduler create worker + schedule | 479.54 ns | 6.17 ns| 6.17 ns | 1.00 current_thread scheduler create worker + schedule | 645.77 ns | 14.10 ns| 16.16 ns | 0.87 current_thread scheduler create worker + schedule + recursive schedule | 1174.28 ns | 104.75 ns| 104.99 ns | 1.00
### Transforming Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+map(v*2)+subscribe | 1319.02 ns | 24.35 ns| 24.35 ns | 1.00 immediate_just+scan(10, std::plus)+subscribe | 1436.17 ns | 26.51 ns| 26.51 ns | 1.00 immediate_just+flat_map(immediate_just(v*2))+subscribe | 3480.79 ns | 206.18 ns| 209.54 ns | 0.98 immediate_just+buffer(2)+subscribe | 2661.03 ns | 71.55 ns| 68.90 ns | 1.04 immediate_just+window(2)+subscribe + subscsribe inner | 4041.64 ns | 1302.55 ns| 1303.40 ns | 1.00
### Conditional Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+take_while(false)+subscribe | 1588.92 ns | 23.12 ns| 23.12 ns | 1.00 immediate_just+take_while(true)+subscribe | 1335.92 ns | 24.05 ns| 24.05 ns | 1.00
### Utility Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just(1)+subscribe_on(immediate)+subscribe | 3488.74 ns | 11.10 ns| 11.11 ns | 1.00
### Combining Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe | 5487.50 ns | 230.68 ns| 223.93 ns | 1.03 immediate_just(1) + merge_with(immediate_just(2)) + subscribe | 5429.41 ns | 208.37 ns| 213.62 ns | 0.98 immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe | - | 194.85 ns| 208.99 ns | 0.93 immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe | 5472.25 ns | 935.74 ns| 987.56 ns | 0.95 immediate_just(1) + zip(immediate_just(2)) + subscribe | 3549.83 ns | 515.08 ns| 520.15 ns | 0.99
### Subjects name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- publish_subject with 1 observer - on_next | 37.42 ns | 20.16 ns| 20.35 ns | 0.99 subscribe 100 observers to publish_subject | 275025.00 ns | 26933.33 ns| 27753.85 ns | 0.97 100 on_next to 100 observers to publish_subject | 51778.95 ns | 38762.96 ns| 38758.06 ns | 1.00
### Scenarios name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- basic sample | 1892.96 ns | 101.79 ns| 102.32 ns | 0.99 basic sample with immediate scheduler | 1878.17 ns | 72.46 ns| 74.34 ns | 0.97
### Aggregating Operators name | rxcpp | rpp | prev rpp | ratio --- | --- | --- | --- | --- immediate_just+reduce(10, std::plus)+subscribe | 1473.40 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 | 2244.08 ns | 363.23 ns| 352.52 ns | 1.03 create(on_error())+retry(1)+subscribe | 1476.10 ns | 139.89 ns| 141.06 ns | 0.99
codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.62%. Comparing base (6a4859f) to head (330fcd1). Report is 3 commits behind head on v2.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v2 #631 +/- ## ======================================= Coverage 95.62% 95.62% ======================================= Files 98 98 Lines 1897 1897 ======================================= Hits 1814 1814 Misses 83 83 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud