Skip to content

Conversation

@norberttech
Copy link
Member

@norberttech norberttech commented Jan 5, 2025

Change Log

Added

Fixed

Changed

  • Harden phpstan generics static analysis configuration

Removed

Deprecated

Security


Description

Resolves: #1327

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 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.754mb +0.05%  | 510.907ms +0.06% | ±0.26% +1015.91% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.859mb +0.10%  | 1.087s +0.92%    | ±0.41% -11.66%   |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.498mb +0.00% | 886.766ms -0.83% | ±0.37% +37.54%   |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.487mb +0.05%  | 31.881ms -2.83%  | ±1.67% +47.42%   |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.464mb +0.05%  | 664.237ms -0.69% | ±2.53% +471.84%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+------------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 108.483mb +0.00% | 57.044ms -0.95% | ±0.51% -84.71% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.028mb +0.01%  | 115.511ms +0.14% | ±0.94% +812.39% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 82.572mb +0.01%  | 103.961ms -3.09% | ±0.33% +20.70%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.994mb +0.00% | 19.205s +0.04%   | ±0.23% -4.67%   |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.072mb +0.01%  | 43.149ms -2.19%  | ±0.46% -71.14%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 80.259mb +0.00%  | 3.206ms +2.78%   | ±2.06% -2.92%   |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 97.533mb +0.00%  | 178.964ms -4.17% | ±0.91% -1.70%   |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 80.253mb +0.00%  | 18.132ms -0.90%  | ±1.15% +18.06%  |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 81.134mb +0.00%  | 1.381ms -4.37%   | ±1.55% -42.74%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 81.134mb +0.00%  | 1.420ms -2.76%   | ±1.50% -19.82%  |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 79.294mb +0.00%  | 3.320ms -0.32%   | ±2.08% +251.78% |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 79.823mb +0.00%  | 14.863ms -1.61%  | ±0.99% +80.89%  |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 79.823mb +0.00%  | 14.735ms -3.24%  | ±0.46% -6.15%   |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 78.515mb +0.00%  | 1.794μs -5.28%   | ±2.67% +5.66%   |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 78.515mb +0.00%  | 0.400μs +33.33%  | ±0.00% +0.00%   |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 86.852mb +0.00%  | 12.005ms -2.54%  | ±1.79% +31.12%  |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 114.199mb +0.00% | 55.608ms -3.40%  | ±0.53% +6.06%   |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 80.343mb +0.00%  | 1.344ms +5.85%   | ±3.20% +25.22%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 83.632mb +0.00%  | 57.698ms -4.07%  | ±1.59% +17.88%  |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 81.396mb +0.00%  | 3.648ms -1.63%   | ±1.07% -42.43%  |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 78.794mb +0.00%  | 40.300ms -1.87%  | ±1.12% +15.75%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 78.795mb +0.00%  | 40.091ms -2.43%  | ±0.62% +22.45%  |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 78.794mb +0.00%  | 40.583ms -0.40%  | ±1.42% +42.10%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 80.955mb +0.00%  | 7.687ms -1.71%   | ±0.85% -16.27%  |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 78.705mb +0.00%  | 29.386ms -1.60%  | ±0.66% +113.37% |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 78.515mb +0.00%  | 13.782μs +4.11%  | ±1.03% -63.03%  |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 78.515mb +0.00%  | 15.094μs +0.07%  | ±0.31% -77.99%  |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 97.533mb +0.00%  | 185.337ms -0.92% | ±1.02% +54.17%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 49.241mb +0.00%  | 383.609ms +0.50% | ±0.50% -43.07%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 12.809mb +0.01%  | 78.471ms +2.95%  | ±1.41% +93.54%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 103.314mb +0.00% | 461.324ms +3.09% | ±0.88% -6.45%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 53.825mb +0.01%  | 230.288ms -0.49% | ±0.61% -42.06%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.403mb +0.03%  | 51.705ms +2.16%  | ±1.41% +206.89% |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Jan 5, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.50%. Comparing base (257e7f4) to head (2baa9d2).
Report is 2 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1328      +/-   ##
==========================================
+ Coverage   82.46%   82.50%   +0.04%     
==========================================
  Files         644      644              
  Lines       17431    17432       +1     
==========================================
+ Hits        14374    14382       +8     
+ Misses       3057     3050       -7     
Components Coverage Δ
etl 85.70% <92.30%> (+0.08%) ⬆️
cli 85.17% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.60% <ø> (ø)
lib-doctrine-dbal-bulk 97.36% <ø> (ø)
lib-filesystem 76.24% <ø> (ø)
lib-parquet 84.16% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 91.24% <ø> (ø)
bridge-filesystem-async-aws 90.60% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 77.10% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 90.14% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 78.04% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 92.85% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.80% <ø> (ø)
adapter-parquet 60.74% <ø> (+0.17%) ⬆️
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)

@norberttech norberttech merged commit 7245870 into flow-php:1.x Jan 5, 2025
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.

Harden phpstan generics static analysis configuration.

1 participant