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

Added DataStream builder to symfony http foundation bridge #1488

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

norberttech
Copy link
Member

Change Log

Added

  • DataStream builder
  • AddRowIdex Transformation
  • Batch Size Transformation

Fixed

Changed

  • Moved Transformations to ETL Core

Removed

Deprecated

Security


Description

Copy link
Contributor

github-actions bot commented Feb 20, 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.802mb +0.05%  | 551.081ms +4.01% | ±0.27% -79.91%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.875mb +0.05%  | 1.059s +3.33%    | ±1.48% +323.38% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.322mb +0.00% | 900.170ms +4.56% | ±0.35% -80.80%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.532mb +0.05%  | 35.804ms +6.09%  | ±1.57% +2.26%   |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.506mb +0.05%  | 636.537ms +8.78% | ±3.27% +280.68% |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.328mb +0.00% | 70.116ms +2.62% | ±0.32% -65.54% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev         |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.001mb +0.00%  | 102.275ms +3.24% | ±0.81% -10.10% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.348mb +0.00%  | 95.342ms +2.45%  | ±0.19% -77.34% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.192mb +0.00% | 20.808s +5.65%   | ±0.21% -48.40% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.998mb +0.01%  | 31.337ms +4.96%  | ±0.74% -73.14% |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.971mb +0.00% | 447.381ms +2.04% | ±1.80% +413.53% |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.161mb +0.00%  | 231.649ms +6.88% | ±0.13% -76.68%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.683mb +0.02%  | 49.382ms +6.22%  | ±1.74% +89.19%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.806mb +0.01%  | 359.494ms +2.99% | ±0.45% -75.89%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.616mb +0.02%  | 73.988ms +7.38%  | ±0.40% -81.50%  |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.014mb +0.00%  | 3.300ms +9.21%   | ±2.40% -1.21%   |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.302mb +0.00% | 185.767ms +2.90% | ±0.20% -89.56%  |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.022mb +0.00%  | 18.942ms +7.47%  | ±0.62% -73.27%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.889mb +0.00%  | 1.842ms +44.38%  | ±3.56% +48.24%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.889mb +0.00%  | 1.876ms +40.77%  | ±2.76% +15.96%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.050mb +0.00%  | 5.286ms +34.71%  | ±0.67% -43.88%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.579mb +0.00%  | 17.310ms +10.59% | ±1.47% -44.49%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.579mb +0.00%  | 17.567ms +6.53%  | ±1.81% +204.97% |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.270mb +0.00%  | 1.894μs +5.57%   | ±2.53% -5.36%   |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.270mb +0.00%  | 0.400μs +100.00% | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.488mb +0.00% | 14.847ms +9.21%  | ±1.40% -12.52%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.555mb +0.00% | 71.543ms +6.13%  | ±2.19% +64.33%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.099mb +0.00%  | 1.304ms +14.21%  | ±1.23% -57.91%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.401mb +0.00% | 63.856ms +4.01%  | ±1.08% -66.73%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.151mb +0.00%  | 3.787ms +9.94%   | ±2.26% -25.31%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.563mb +0.00%  | 45.029ms +10.18% | ±2.93% +135.12% |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.564mb +0.00%  | 44.223ms +11.66% | ±1.61% -32.86%  |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.563mb +0.00%  | 42.539ms +3.23%  | ±1.70% -17.84%  |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.711mb +0.00%  | 8.217ms +3.42%   | ±1.77% +39.69%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.461mb +0.00%  | 29.008ms -0.79%  | ±1.31% -43.31%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.270mb +0.00%  | 13.482μs +10.92% | ±1.06% -71.29%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.270mb +0.00%  | 16.358μs +16.79% | ±3.46% +929.78% |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.303mb +0.00% | 192.590ms +6.31% | ±0.64% +51.00%  |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 71.15385% with 15 lines in your changes missing coverage. Please review.

Project coverage is 83.07%. Comparing base (690b27e) to head (9395db2).
Report is 4 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1488      +/-   ##
==========================================
- Coverage   83.09%   83.07%   -0.03%     
==========================================
  Files         668      671       +3     
  Lines       17925    17975      +50     
==========================================
+ Hits        14895    14932      +37     
- Misses       3030     3043      +13     
Components Coverage Δ
etl 85.86% <80.00%> (+0.01%) ⬆️
cli 86.73% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 97.43% <ø> (ø)
lib-filesystem 76.75% <ø> (ø)
lib-parquet 84.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 91.16% <ø> (ø)
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 74.19% <70.21%> (-2.92%) ⬇️
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 88.68% <ø> (ø)
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 merged commit 78dbc90 into flow-php:1.x Feb 20, 2025
19 of 22 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