Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

Fixed

Changed

Removed

  • Psalm - static analysis tool

Deprecated

Security


Description

Resolves: #1309

image

It might be just me but I don't feel like psalm is providing that much extra value on top of phpstan which seems to be less in my way.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 31, 2024

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.715mb +0.03%  | 519.940ms +0.58% | ±1.82% +87.26%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.819mb +0.03%  | 1.108s +0.33%    | ±0.83% -66.76%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.465mb +0.00% | 919.350ms +0.20% | ±0.10% -70.87%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.448mb +0.04%  | 34.335ms +1.12%  | ±1.87% +147.59% |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.424mb +0.04%  | 671.872ms +0.74% | ±1.22% +888.93% |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 114.445mb +0.00% | 63.255ms +3.98% | ±0.86% -73.91% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 55.188mb +0.00%  | 115.057ms +0.73% | ±0.51% -41.49%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 85.655mb +0.00%  | 105.250ms +1.78% | ±0.84% -17.55%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 167.441mb +0.00% | 19.488s -4.31%   | ±0.24% -89.68%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.273mb +0.01%  | 44.388ms +0.30%  | ±0.64% +636.56% |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 85.501mb +0.00%  | 3.445ms +2.62%   | ±0.97% -50.69%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 102.771mb +0.00% | 185.933ms -0.04% | ±1.13% -8.56%   |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 85.491mb +0.00%  | 18.768ms +0.34%  | ±2.91% +76.15%  |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 86.376mb +0.00%  | 1.656ms -2.31%   | ±1.23% -57.74%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 86.376mb +0.00%  | 1.669ms +2.76%   | ±2.78% -21.09%  |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 84.537mb +0.00%  | 2.613ms +9.24%   | ±0.22% -92.05%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 85.066mb +0.00%  | 16.021ms +6.97%  | ±1.39% +76.97%  |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 85.066mb +0.00%  | 16.109ms +6.29%  | ±0.41% +14.57%  |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 83.757mb +0.00%  | 1.994μs +5.28%   | ±2.40% -5.08%   |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 83.757mb +0.00%  | 0.300μs 0.00%    | ±0.00% 0.00%    |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 92.335mb +0.00%  | 13.474ms +4.34%  | ±1.62% +77.32%  |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 120.642mb +0.00% | 63.429ms +5.08%  | ±1.25% +163.34% |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 85.586mb +0.00%  | 1.712ms +37.77%  | ±2.68% +25.10%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 88.874mb +0.00%  | 60.971ms +1.12%  | ±0.38% -35.68%  |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 86.638mb +0.00%  | 4.156ms +16.74%  | ±2.11% -8.07%   |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 84.032mb +0.00%  | 40.827ms +0.52%  | ±0.88% +60.30%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 84.033mb +0.00%  | 41.479ms -0.00%  | ±1.38% +123.67% |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 84.032mb +0.00%  | 41.928ms -0.96%  | ±0.43% -77.45%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 86.198mb +0.00%  | 7.829ms +1.77%   | ±0.47% -71.18%  |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 83.947mb +0.00%  | 30.552ms +2.27%  | ±0.35% -54.49%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 83.757mb +0.00%  | 13.721μs +6.79%  | ±0.91% -68.38%  |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 83.757mb +0.00%  | 15.800μs +3.56%  | ±0.52% -72.97%  |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 102.776mb +0.00% | 190.831ms +1.07% | ±0.38% -38.67%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 50.656mb +0.00%  | 397.604ms -1.33% | ±0.39% -43.94%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 13.071mb +0.02%  | 82.535ms +0.65%  | ±0.65% -48.94%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.913mb +0.00% | 486.947ms +1.98% | ±1.12% +598.21% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.104mb +0.00%  | 243.981ms -0.59% | ±0.41% -76.44%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.626mb +0.02%  | 53.758ms +2.38%  | ±1.62% +533.63% |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Dec 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.45%. Comparing base (6ed6d98) to head (ecbf7c8).
Report is 3 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1311      +/-   ##
==========================================
- Coverage   82.45%   82.45%   -0.01%     
==========================================
  Files         638      638              
  Lines       17322    17322              
==========================================
- Hits        14283    14282       -1     
- Misses       3039     3040       +1     
Components Coverage Δ
etl 85.54% <ø> (ø)
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 90.78% <ø> (-0.47%) ⬇️
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 63.46% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.02% <ø> (ø)

@norberttech norberttech merged commit cf792c2 into flow-php:1.x Dec 31, 2024
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.

Remove Psalm from the project

1 participant