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

Flow Http Stream DX improvements #1497

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

norberttech
Copy link
Member

Change Log

Added

  • DSL for Symfony Http Bridge

Fixed

  • Fixed documentation

Changed

  • Renamed API of Http Bridge Stream Builder
  • Moved generic Transformations from bridge to Core

Removed

Deprecated

Security


Description

Copy link
Contributor

github-actions bot commented Feb 25, 2025

Flow PHP - Benchmarks

Results of the benchmarks from this PR are compared with the results from 1.x branch.

Extractors
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| benchmark             | subject           | revs | its | mem_peak        | mode             | rstdev          |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.813mb +0.73%  | 549.824ms -0.70% | ±0.23% -92.26%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.886mb +0.72%  | 1.068s +0.33%    | ±0.51% +281.50% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.337mb +0.04% | 938.146ms +4.56% | ±1.25% -13.39%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.543mb +0.77%  | 35.761ms -1.43%  | ±0.70% -65.23%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.518mb +0.78%  | 599.330ms +0.35% | ±0.62% -25.16%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.340mb +0.03% | 71.139ms +2.85% | ±1.55% +54.22% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.012mb +0.05%  | 102.963ms -1.36% | ±1.21% +18.10%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.360mb +0.04%  | 96.969ms -0.16%  | ±0.35% +21.16%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.208mb +0.02% | 20.603s +0.03%   | ±0.28% +387.68% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.010mb +0.56%  | 31.242ms +1.90%  | ±1.44% +1.28%   |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.883mb +0.03%  | 362.774ms -0.81% | ±0.68% +127.90%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.693mb +0.10%  | 72.403ms -0.01%  | ±0.47% -60.50%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.982mb +0.01% | 450.848ms +0.10% | ±0.67% -33.19%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.173mb +0.02%  | 228.918ms -0.96% | ±0.85% +224.28%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.695mb +0.08%  | 49.807ms -0.23%  | ±1.97% +74.38%   |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.026mb +0.01%  | 3.232ms -1.65%   | ±1.49% +155.98%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.313mb +0.01% | 184.296ms +0.47% | ±0.22% +17.74%   |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.033mb +0.01%  | 18.804ms +0.34%  | ±1.01% +20.11%   |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.901mb +0.01%  | 1.604ms +9.05%   | ±3.18% +76.89%   |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.901mb +0.01%  | 1.553ms +4.79%   | ±1.29% +109.94%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.062mb +0.01%  | 4.523ms +2.50%   | ±3.51% +31.98%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.591mb +0.01%  | 16.588ms +2.31%  | ±0.37% -80.58%   |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.591mb +0.01%  | 16.513ms +1.25%  | ±0.19% -79.79%   |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.282mb +0.01%  | 1.806μs +0.68%   | ±2.57% -3.64%    |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.282mb +0.01%  | 0.300μs -25.00%  | ±0.00% -100.00%  |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.500mb +0.01% | 14.222ms -1.44%  | ±1.64% +95.04%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.567mb +0.01% | 69.472ms -4.82%  | ±1.06% +33.84%   |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.110mb +0.01%  | 1.376ms +5.92%   | ±0.33% -71.44%   |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.413mb +0.01% | 64.852ms +1.81%  | ±1.58% +77.84%   |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.163mb +0.01%  | 3.805ms +3.33%   | ±1.43% -21.06%   |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.575mb +0.01%  | 42.645ms -0.05%  | ±0.95% -23.03%   |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.576mb +0.01%  | 42.789ms +1.66%  | ±3.47% +2320.25% |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.575mb +0.01%  | 44.297ms +5.82%  | ±1.78% +5.94%    |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.722mb +0.01%  | 8.173ms -0.83%   | ±2.24% +229.29%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.472mb +0.01%  | 29.025ms -1.29%  | ±0.39% -1.41%    |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.282mb +0.01%  | 13.321μs -1.55%  | ±0.94% -45.49%   |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.282mb +0.01%  | 15.100μs -3.20%  | ±0.54% -79.34%   |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.314mb +0.01% | 189.246ms +0.22% | ±0.33% -45.87%   |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+

Copy link

codecov bot commented Feb 25, 2025

Codecov Report

Attention: Patch coverage is 79.24528% with 44 lines in your changes missing coverage. Please review.

Project coverage is 83.01%. Comparing base (93c0f52) to head (fb0eae2).
Report is 4 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff            @@
##              1.x    #1497    +/-   ##
========================================
  Coverage   83.01%   83.01%            
========================================
  Files         677      683     +6     
  Lines       18093    18280   +187     
========================================
+ Hits        15019    15175   +156     
- Misses       3074     3105    +31     
Components Coverage Δ
etl 86.03% <100.00%> (+0.03%) ⬆️
cli 86.73% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <ø> (ø)
lib-filesystem 78.02% <86.29%> (+1.27%) ⬆️
lib-parquet 84.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 90.69% <ø> (ø)
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 72.72% <67.85%> (-1.47%) ⬇️
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 88.08% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 78.04% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 80.85% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)

@norberttech norberttech enabled auto-merge (squash) February 25, 2025 12:58
@norberttech norberttech disabled auto-merge February 25, 2025 12:58
@norberttech norberttech merged commit c851044 into flow-php:1.x Feb 25, 2025
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant