Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

Fixed

Changed

  • Doctrine Dbal Adapter loader now expect options as an object

Removed

Deprecated

Security


Description

Array docblocks are impossible to keep up to date especially when each platform comes with different options. With this approach at least we are going to get an exception when something is misconfigured.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 21, 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.804mb +0.19%  | 550.430ms -0.59% | ±0.20% -7.29%   |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.877mb +0.19%  | 1.064s +0.75%    | ±0.09% -88.45%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.325mb +0.01% | 896.327ms -3.25% | ±2.00% +155.70% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.534mb +0.20%  | 36.177ms +2.19%  | ±0.22% -84.83%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.509mb +0.20%  | 607.255ms -0.54% | ±0.19% -82.29%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.331mb +0.01% | 69.955ms +1.16% | ±0.08% -96.05% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.004mb +0.01%  | 103.147ms -3.47% | ±0.71% +5.82%   |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.351mb +0.01%  | 95.194ms -2.86%  | ±0.70% +30.84%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.195mb +0.01% | 20.772s -3.98%   | ±0.12% -92.53%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.001mb +0.05%  | 31.694ms -1.47%  | ±0.63% +285.20% |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.974mb +0.01% | 456.640ms +0.42% | ±1.06% +449.75% |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.164mb +0.02%  | 231.102ms -1.07% | ±0.56% -48.21%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.686mb +0.06%  | 50.410ms -4.05%  | ±0.95% +79.47%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.809mb +0.17%  | 360.633ms -0.08% | ±1.23% +112.79% |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.618mb +0.64%  | 72.985ms -0.86%  | ±0.74% +24.92%  |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.017mb +0.01%  | 3.125ms -25.30%  | ±1.20% -52.01%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.305mb +0.01% | 186.243ms +1.74% | ±0.89% +38.72%  |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.025mb +0.01%  | 18.750ms -0.52%  | ±0.65% -38.85%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.892mb +0.01%  | 1.496ms -26.48%  | ±1.22% -58.65%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.892mb +0.01%  | 1.432ms -30.12%  | ±0.88% +26.37%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.053mb +0.01%  | 4.488ms -17.50%  | ±1.88% -15.90%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.582mb +0.01%  | 16.471ms -4.62%  | ±0.22% -85.98%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.582mb +0.01%  | 16.378ms -4.51%  | ±0.21% -78.78%  |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.273mb +0.01%  | 1.894μs -9.80%   | ±2.53% -35.05%  |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.273mb +0.01%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.491mb +0.01% | 14.651ms -6.97%  | ±3.46% -0.43%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.558mb +0.01% | 74.019ms -1.32%  | ±0.71% -44.30%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.101mb +0.01%  | 1.300ms -40.18%  | ±0.61% -57.24%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.404mb +0.01% | 63.243ms -3.14%  | ±0.92% +86.45%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.154mb +0.01%  | 3.749ms -27.07%  | ±0.38% -89.58%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.566mb +0.01%  | 42.739ms -3.34%  | ±1.46% +255.79% |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.567mb +0.01%  | 41.841ms -3.82%  | ±1.06% +4.57%   |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.566mb +0.01%  | 42.411ms -0.17%  | ±0.87% -47.59%  |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.713mb +0.01%  | 8.207ms -11.60%  | ±0.61% -64.30%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.463mb +0.01%  | 29.244ms -7.43%  | ±0.99% -37.67%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.273mb +0.01%  | 13.320μs -7.50%  | ±1.28% +0.00%   |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.273mb +0.01%  | 15.221μs -2.82%  | ±0.82% -66.19%  |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.305mb +0.01% | 188.995ms +1.39% | ±0.52% +154.87% |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 70.99237% with 38 lines in your changes missing coverage. Please review.

Project coverage is 83.00%. Comparing base (acf1376) to head (6bfa2ec).
Report is 2 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1493      +/-   ##
==========================================
- Coverage   83.13%   83.00%   -0.13%     
==========================================
  Files         671      677       +6     
  Lines       17985    18076      +91     
==========================================
+ Hits        14951    15004      +53     
- Misses       3034     3072      +38     
Components Coverage Δ
etl 86.00% <ø> (ø)
cli 86.73% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <71.31%> (-7.33%) ⬇️
lib-filesystem 76.75% <ø> (ø)
lib-parquet 84.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 90.69% <ø> (-0.47%) ⬇️
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 74.19% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 88.08% <66.66%> (-0.65%) ⬇️
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 9854633 into flow-php:1.x Feb 21, 2025
20 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