Skip to content
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

[pre-commit.ci] pre-commit autoupdate #602

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Conversation

pre-commit-ci[bot]
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Jun 10, 2024

updates:
- [github.com/pre-commit/mirrors-clang-format: v18.1.5 → v18.1.6](pre-commit/mirrors-clang-format@v18.1.5...v18.1.6)
Copy link
Contributor

BENCHMARK RESULTS (AUTOGENERATED)

ci-ubuntu-gcc

General

name rxcpp rpp prev rpp ratio
Subscribe empty callbacks to empty observable 308.34 ns 2.19 ns 2.16 ns 1.01
Subscribe empty callbacks to empty observable via pipe operator 307.87 ns 2.16 ns 2.16 ns 1.00

Sources

name rxcpp rpp prev rpp ratio
from array of 1 - create + subscribe + immediate 693.72 ns 0.31 ns 0.31 ns 1.00
from array of 1 - create + subscribe + current_thread 1036.25 ns 3.73 ns 3.70 ns 1.01
concat_as_source of just(1 immediate) create + subscribe 2251.51 ns 129.62 ns 120.01 ns 1.08
defer from array of 1 - defer + create + subscribe + immediate 782.86 ns 0.31 ns 0.31 ns 1.00
interval - interval + take(3) + subscribe + immediate 2169.22 ns 59.19 ns 59.24 ns 1.00
interval - interval + take(3) + subscribe + current_thread 3079.56 ns 32.40 ns 32.40 ns 1.00
from array of 1 - create + as_blocking + subscribe + new_thread 27534.25 ns 27374.11 ns 27377.71 ns 1.00
from array of 1000 - create + as_blocking + subscribe + new_thread 38693.97 ns 51316.05 ns 50808.87 ns 1.01
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe 3493.06 ns 138.58 ns 148.02 ns 0.94

Filtering Operators

name rxcpp rpp prev rpp ratio
immediate_just+take(1)+subscribe 1114.37 ns 0.31 ns 0.31 ns 1.00
immediate_just+filter(true)+subscribe 872.91 ns 0.31 ns 0.31 ns 1.00
immediate_just(1,2)+skip(1)+subscribe 1018.73 ns 0.31 ns 0.31 ns 1.00
immediate_just(1,1,2)+distinct_until_changed()+subscribe 855.82 ns 0.31 ns 0.31 ns 1.00
immediate_just(1,2)+first()+subscribe 1247.71 ns 0.31 ns 0.31 ns 1.00
immediate_just(1,2)+last()+subscribe 924.79 ns 0.31 ns 0.31 ns 1.00
immediate_just+take_last(1)+subscribe 1120.41 ns 17.90 ns 18.22 ns 0.98

Schedulers

name rxcpp rpp prev rpp ratio
immediate scheduler create worker + schedule 270.41 ns 2.16 ns 2.16 ns 1.00
current_thread scheduler create worker + schedule 370.48 ns 6.17 ns 5.86 ns 1.05
current_thread scheduler create worker + schedule + recursive schedule 817.54 ns 57.04 ns 55.57 ns 1.03

Transforming Operators

name rxcpp rpp prev rpp ratio
immediate_just+map(v*2)+subscribe 844.10 ns 0.31 ns 0.31 ns 1.00
immediate_just+scan(10, std::plus)+subscribe 906.72 ns 0.31 ns 0.31 ns 1.00
immediate_just+flat_map(immediate_just(v*2))+subscribe 2311.26 ns 180.67 ns 171.19 ns 1.06
immediate_just+buffer(2)+subscribe 1567.99 ns 13.58 ns 13.89 ns 0.98
immediate_just+window(2)+subscribe + subscsribe inner 2456.11 ns 1054.04 ns 1028.99 ns 1.02

Conditional Operators

name rxcpp rpp prev rpp ratio
immediate_just+take_while(false)+subscribe 861.57 ns - - 0.00
immediate_just+take_while(true)+subscribe 852.73 ns 0.31 ns 0.31 ns 1.01

Utility Operators

name rxcpp rpp prev rpp ratio
immediate_just(1)+subscribe_on(immediate)+subscribe 2027.73 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 3405.39 ns 175.56 ns 182.17 ns 0.96
immediate_just(1) + merge_with(immediate_just(2)) + subscribe 3626.79 ns 171.66 ns 178.82 ns 0.96
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe - 132.09 ns 129.60 ns 1.02
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe 3538.53 ns 954.60 ns 942.41 ns 1.01
immediate_just(1) + zip(immediate_just(2)) + subscribe 2163.93 ns 219.27 ns 230.83 ns 0.95

Subjects

name rxcpp rpp prev rpp ratio
publish_subject with 1 observer - on_next 34.58 ns 14.64 ns 14.86 ns 0.99
subscribe 100 observers to publish_subject 199048.83 ns 16091.37 ns 52053.20 ns 0.31
100 on_next to 100 observers to publish_subject 27109.05 ns 17069.87 ns 28711.69 ns 0.59

Scenarios

name rxcpp rpp prev rpp ratio
basic sample 1384.43 ns 13.27 ns 13.27 ns 1.00
basic sample with immediate scheduler 1385.96 ns 5.55 ns 5.55 ns 1.00

Aggregating Operators

name rxcpp rpp prev rpp ratio
immediate_just+reduce(10, std::plus)+subscribe 914.74 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 2048.60 ns 994.34 ns 978.84 ns 1.02

ci-macos

General

name rxcpp rpp prev rpp ratio
Subscribe empty callbacks to empty observable 976.19 ns 3.88 ns 4.34 ns 0.89
Subscribe empty callbacks to empty observable via pipe operator 973.88 ns 3.92 ns 3.89 ns 1.01

Sources

name rxcpp rpp prev rpp ratio
from array of 1 - create + subscribe + immediate 1944.46 ns 0.23 ns 0.23 ns 1.00
from array of 1 - create + subscribe + current_thread 2433.78 ns 32.24 ns 32.70 ns 0.99
concat_as_source of just(1 immediate) create + subscribe 5433.95 ns 330.91 ns 336.27 ns 0.98
defer from array of 1 - defer + create + subscribe + immediate 1970.02 ns 0.23 ns 0.23 ns 1.00
interval - interval + take(3) + subscribe + immediate 4927.37 ns 113.84 ns 115.06 ns 0.99
interval - interval + take(3) + subscribe + current_thread 6057.99 ns 93.01 ns 96.91 ns 0.96
from array of 1 - create + as_blocking + subscribe + new_thread 89387.64 ns 89404.75 ns 77282.14 ns 1.16
from array of 1000 - create + as_blocking + subscribe + new_thread 97571.73 ns 94508.17 ns 83798.43 ns 1.13
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe 8152.43 ns 375.32 ns 378.05 ns 0.99

Filtering Operators

name rxcpp rpp prev rpp ratio
immediate_just+take(1)+subscribe 2888.50 ns 0.23 ns 0.22 ns 1.05
immediate_just+filter(true)+subscribe 2115.38 ns 0.23 ns 0.22 ns 1.05
immediate_just(1,2)+skip(1)+subscribe 2775.31 ns 0.23 ns 0.22 ns 1.05
immediate_just(1,1,2)+distinct_until_changed()+subscribe 2098.03 ns 0.47 ns 0.45 ns 1.05
immediate_just(1,2)+first()+subscribe 3223.49 ns 0.23 ns 0.22 ns 1.05
immediate_just(1,2)+last()+subscribe 2405.85 ns 0.23 ns 0.22 ns 1.05
immediate_just+take_last(1)+subscribe 3056.43 ns 72.98 ns 68.61 ns 1.06

Schedulers

name rxcpp rpp prev rpp ratio
immediate scheduler create worker + schedule 857.84 ns 4.14 ns 4.18 ns 0.99
current_thread scheduler create worker + schedule 1204.21 ns 37.05 ns 37.01 ns 1.00
current_thread scheduler create worker + schedule + recursive schedule 1987.29 ns 219.15 ns 207.30 ns 1.06

Transforming Operators

name rxcpp rpp prev rpp ratio
immediate_just+map(v*2)+subscribe 2109.08 ns 4.20 ns 4.20 ns 1.00
immediate_just+scan(10, std::plus)+subscribe 2326.71 ns 0.47 ns 0.45 ns 1.05
immediate_just+flat_map(immediate_just(v*2))+subscribe 5306.05 ns 406.72 ns 383.66 ns 1.06
immediate_just+buffer(2)+subscribe 2509.63 ns 67.24 ns 66.84 ns 1.01
immediate_just+window(2)+subscribe + subscsribe inner 5494.80 ns 2391.36 ns 2220.63 ns 1.08

Conditional Operators

name rxcpp rpp prev rpp ratio
immediate_just+take_while(false)+subscribe 2103.39 ns - - 0.00
immediate_just+take_while(true)+subscribe 2108.51 ns 0.23 ns 0.23 ns 1.01

Utility Operators

name rxcpp rpp prev rpp ratio
immediate_just(1)+subscribe_on(immediate)+subscribe 6200.37 ns 5.03 ns 5.51 ns 0.91

Combining Operators

name rxcpp rpp prev rpp ratio
immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe 7476.67 ns 437.93 ns 441.71 ns 0.99
immediate_just(1) + merge_with(immediate_just(2)) + subscribe 8383.39 ns 448.13 ns 439.54 ns 1.02
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe - 460.28 ns 459.85 ns 1.00
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe 7928.76 ns 1913.15 ns 1920.23 ns 1.00
immediate_just(1) + zip(immediate_just(2)) + subscribe 5169.54 ns 837.01 ns 851.59 ns 0.98

Subjects

name rxcpp rpp prev rpp ratio
publish_subject with 1 observer - on_next 76.77 ns 48.92 ns 49.27 ns 0.99
subscribe 100 observers to publish_subject 343538.67 ns 40558.00 ns 124131.75 ns 0.33
100 on_next to 100 observers to publish_subject 53109.00 ns 18536.04 ns 29554.13 ns 0.63

Scenarios

name rxcpp rpp prev rpp ratio
basic sample 2756.92 ns 67.91 ns 68.90 ns 0.99
basic sample with immediate scheduler 2748.29 ns 18.68 ns 18.65 ns 1.00

Aggregating Operators

name rxcpp rpp prev rpp ratio
immediate_just+reduce(10, std::plus)+subscribe 2363.30 ns 0.23 ns 0.23 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 6479.17 ns 4044.18 ns 4078.33 ns 0.99

ci-ubuntu-clang

General

name rxcpp rpp prev rpp ratio
Subscribe empty callbacks to empty observable 267.65 ns 0.88 ns 0.88 ns 1.00
Subscribe empty callbacks to empty observable via pipe operator 269.25 ns 0.88 ns 0.88 ns 1.00

Sources

name rxcpp rpp prev rpp ratio
from array of 1 - create + subscribe + immediate 560.21 ns 0.31 ns 0.31 ns 1.01
from array of 1 - create + subscribe + current_thread 788.15 ns 4.32 ns 4.01 ns 1.08
concat_as_source of just(1 immediate) create + subscribe 2354.92 ns 135.61 ns 137.78 ns 0.98
defer from array of 1 - defer + create + subscribe + immediate 785.01 ns 0.31 ns 0.31 ns 1.00
interval - interval + take(3) + subscribe + immediate 2278.80 ns 58.31 ns 58.34 ns 1.00
interval - interval + take(3) + subscribe + current_thread 3274.10 ns 30.83 ns 30.88 ns 1.00
from array of 1 - create + as_blocking + subscribe + new_thread 29116.66 ns 27630.03 ns 28788.03 ns 0.96
from array of 1000 - create + as_blocking + subscribe + new_thread 39247.11 ns 36349.34 ns 34170.36 ns 1.06
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe 3641.16 ns 158.00 ns 162.85 ns 0.97

Filtering Operators

name rxcpp rpp prev rpp ratio
immediate_just+take(1)+subscribe 1152.75 ns 0.31 ns 0.31 ns 1.00
immediate_just+filter(true)+subscribe 897.87 ns 0.31 ns 0.39 ns 0.79
immediate_just(1,2)+skip(1)+subscribe 1135.49 ns 0.31 ns 0.31 ns 0.99
immediate_just(1,1,2)+distinct_until_changed()+subscribe 931.96 ns 0.62 ns 0.62 ns 1.00
immediate_just(1,2)+first()+subscribe 1368.90 ns 0.31 ns 0.33 ns 0.94
immediate_just(1,2)+last()+subscribe 1106.21 ns 0.31 ns 0.31 ns 1.00
immediate_just+take_last(1)+subscribe 1186.17 ns 0.31 ns 0.31 ns 1.00

Schedulers

name rxcpp rpp prev rpp ratio
immediate scheduler create worker + schedule 279.44 ns 0.88 ns 0.88 ns 1.00
current_thread scheduler create worker + schedule 389.76 ns 4.63 ns 4.02 ns 1.15
current_thread scheduler create worker + schedule + recursive schedule 850.96 ns 55.38 ns 57.29 ns 0.97

Transforming Operators

name rxcpp rpp prev rpp ratio
immediate_just+map(v*2)+subscribe 884.59 ns 0.31 ns 0.31 ns 1.00
immediate_just+scan(10, std::plus)+subscribe 1052.54 ns 0.31 ns 0.31 ns 1.00
immediate_just+flat_map(immediate_just(v*2))+subscribe 2242.04 ns 136.78 ns 139.37 ns 0.98
immediate_just+buffer(2)+subscribe 1512.59 ns 13.87 ns 13.88 ns 1.00
immediate_just+window(2)+subscribe + subscsribe inner 2474.23 ns 937.49 ns 907.82 ns 1.03

Conditional Operators

name rxcpp rpp prev rpp ratio
immediate_just+take_while(false)+subscribe 891.40 ns - - 0.00
immediate_just+take_while(true)+subscribe 895.12 ns 0.31 ns 0.31 ns 1.00

Utility Operators

name rxcpp rpp prev rpp ratio
immediate_just(1)+subscribe_on(immediate)+subscribe 2022.45 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 3258.63 ns 160.22 ns 160.35 ns 1.00
immediate_just(1) + merge_with(immediate_just(2)) + subscribe 3718.66 ns 148.22 ns 146.17 ns 1.01
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe - 143.57 ns 142.26 ns 1.01
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe 3348.11 ns 839.21 ns 843.52 ns 0.99
immediate_just(1) + zip(immediate_just(2)) + subscribe 2258.46 ns 204.90 ns 203.80 ns 1.01

Subjects

name rxcpp rpp prev rpp ratio
publish_subject with 1 observer - on_next 52.15 ns 17.81 ns 19.25 ns 0.93
subscribe 100 observers to publish_subject 210202.00 ns 16014.85 ns 49897.33 ns 0.32
100 on_next to 100 observers to publish_subject 38992.73 ns 17525.00 ns 32123.34 ns 0.55

Scenarios

name rxcpp rpp prev rpp ratio
basic sample 1280.89 ns 12.03 ns 11.12 ns 1.08
basic sample with immediate scheduler 1330.36 ns 5.86 ns 6.17 ns 0.95

Aggregating Operators

name rxcpp rpp prev rpp ratio
immediate_just+reduce(10, std::plus)+subscribe 1079.42 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 2185.07 ns 1230.79 ns 1235.77 ns 1.00

ci-windows

General

name rxcpp rpp prev rpp ratio
Subscribe empty callbacks to empty observable 560.62 ns 4.02 ns 4.01 ns 1.00
Subscribe empty callbacks to empty observable via pipe operator 579.29 ns 4.01 ns 4.01 ns 1.00

Sources

name rxcpp rpp prev rpp ratio
from array of 1 - create + subscribe + immediate 1153.35 ns 5.86 ns 4.62 ns 1.27
from array of 1 - create + subscribe + current_thread 1435.88 ns 15.13 ns 15.74 ns 0.96
concat_as_source of just(1 immediate) create + subscribe 3692.83 ns 171.37 ns 173.49 ns 0.99
defer from array of 1 - defer + create + subscribe + immediate 1180.43 ns 5.86 ns 4.93 ns 1.19
interval - interval + take(3) + subscribe + immediate 3324.17 ns 133.54 ns 133.47 ns 1.00
interval - interval + take(3) + subscribe + current_thread 3388.64 ns 53.58 ns 52.61 ns 1.02
from array of 1 - create + as_blocking + subscribe + new_thread 116710.00 ns 110327.27 ns 110733.33 ns 1.00
from array of 1000 - create + as_blocking + subscribe + new_thread 131825.00 ns 127862.50 ns 130025.00 ns 0.98
concat_as_source of just(1 immediate) and just(1,2 immediate)create + subscribe 5317.65 ns 207.16 ns 202.01 ns 1.03

Filtering Operators

name rxcpp rpp prev rpp ratio
immediate_just+take(1)+subscribe 1802.80 ns 12.87 ns 12.87 ns 1.00
immediate_just+filter(true)+subscribe 1307.50 ns 11.63 ns 11.75 ns 0.99
immediate_just(1,2)+skip(1)+subscribe 1700.87 ns 13.02 ns 13.12 ns 0.99
immediate_just(1,1,2)+distinct_until_changed()+subscribe 1616.06 ns 15.83 ns 15.77 ns 1.00
immediate_just(1,2)+first()+subscribe 2041.84 ns 12.64 ns 12.64 ns 1.00
immediate_just(1,2)+last()+subscribe 1973.55 ns 14.12 ns 14.13 ns 1.00
immediate_just+take_last(1)+subscribe 2007.06 ns 59.50 ns 63.56 ns 0.94

Schedulers

name rxcpp rpp prev rpp ratio
immediate scheduler create worker + schedule 475.25 ns 6.18 ns 6.17 ns 1.00
current_thread scheduler create worker + schedule 640.43 ns 14.02 ns 13.17 ns 1.06
current_thread scheduler create worker + schedule + recursive schedule 1345.66 ns 106.88 ns 103.79 ns 1.03

Transforming Operators

name rxcpp rpp prev rpp ratio
immediate_just+map(v*2)+subscribe 1309.38 ns 11.33 ns 11.10 ns 1.02
immediate_just+scan(10, std::plus)+subscribe 1415.57 ns 21.29 ns 21.27 ns 1.00
immediate_just+flat_map(immediate_just(v*2))+subscribe 3455.89 ns 214.83 ns 211.09 ns 1.02
immediate_just+buffer(2)+subscribe 2611.19 ns 59.01 ns 58.09 ns 1.02
immediate_just+window(2)+subscribe + subscsribe inner 3940.61 ns 1267.43 ns 1235.98 ns 1.03

Conditional Operators

name rxcpp rpp prev rpp ratio
immediate_just+take_while(false)+subscribe 1621.36 ns 11.42 ns 11.41 ns 1.00
immediate_just+take_while(true)+subscribe 1310.18 ns 11.64 ns 11.74 ns 0.99

Utility Operators

name rxcpp rpp prev rpp ratio
immediate_just(1)+subscribe_on(immediate)+subscribe 3111.01 ns 8.02 ns 7.09 ns 1.13

Combining Operators

name rxcpp rpp prev rpp ratio
immediate_just(immediate_just(1), immediate_just(1)) + merge() + subscribe 5089.72 ns 212.79 ns 241.41 ns 0.88
immediate_just(1) + merge_with(immediate_just(2)) + subscribe 5400.00 ns 225.18 ns 221.83 ns 1.02
immediate_just(1) + with_latest_from(immediate_just(2)) + subscribe - 196.94 ns 227.00 ns 0.87
immediate_just(immediate_just(1),immediate_just(1)) + switch_on_next() + subscribe 5232.34 ns 921.70 ns 974.93 ns 0.95
immediate_just(1) + zip(immediate_just(2)) + subscribe 3560.12 ns 511.21 ns 542.30 ns 0.94

Subjects

name rxcpp rpp prev rpp ratio
publish_subject with 1 observer - on_next 36.35 ns 20.06 ns 27.44 ns 0.73
subscribe 100 observers to publish_subject 290333.33 ns 26769.05 ns 80550.00 ns 0.33
100 on_next to 100 observers to publish_subject 51786.36 ns 32645.71 ns 63850.00 ns 0.51

Scenarios

name rxcpp rpp prev rpp ratio
basic sample 1863.03 ns 57.96 ns 56.50 ns 1.03
basic sample with immediate scheduler 1873.49 ns 38.25 ns 36.40 ns 1.05

Aggregating Operators

name rxcpp rpp prev rpp ratio
immediate_just+reduce(10, std::plus)+subscribe 1445.66 ns 19.98 ns 19.97 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 1891.68 ns 330.20 ns 334.07 ns 0.99

@victimsnino victimsnino merged commit 31837d4 into v2 Jun 12, 2024
33 of 34 checks passed
@victimsnino victimsnino deleted the pre-commit-ci-update-config branch June 12, 2024 19:46
Copy link

sonarcloud bot commented Jun 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant