Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented May 7, 2025

Change Log

Added

Fixed

Changed

  • Adjust `DataFrame::renameEach()` to allow multiple strategies at once

Removed

Deprecated

Security


Description

@stloyd stloyd requested a review from norberttech as a code owner May 7, 2025 14:56
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 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.888mb +0.00%  | 618.983ms +0.87% | ±1.07% -20.90% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 5.468mb +0.03%  | 1.362s +1.55%    | ±0.90% +37.98% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.485mb +0.00% | 925.645ms -1.98% | ±0.53% +38.79% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.612mb +0.01%  | 39.058ms -0.03%  | ±0.71% -53.63% |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.587mb +0.01%  | 608.993ms -0.44% | ±1.37% -60.53% |
+-----------------------+-------------------+------+-----+-----------------+------------------+----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.410mb +0.00% | 70.101ms -1.30% | ±0.62% +54.41% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+------------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev           |
+--------------------+----------------+------+-----+------------------+------------------+------------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.055mb +0.00%  | 104.568ms -3.08% | ±1.22% -10.68%   |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.087mb +0.00%  | 95.394ms -3.37%  | ±1.06% +17.25%   |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.569mb +0.00% | 20.662s -2.23%   | ±2.26% +1803.58% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.145mb +0.00%  | 31.636ms +1.99%  | ±0.81% +246.98%  |
+--------------------+----------------+------+-----+------------------+------------------+------------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 44.053mb +0.00%  | 458.343ms -0.42% | ±1.47% +43.77%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.862mb +0.00%  | 93.580ms -0.17%  | ±0.28% -58.28%  |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.072mb +0.00%  | 3.776ms -7.23%   | ±2.06% +20.45%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.428mb +0.00% | 184.970ms +1.18% | ±0.82% +244.51% |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.148mb +0.00%  | 18.489ms -1.59%  | ±0.43% -44.93%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.946mb +0.00%  | 1.892ms -5.73%   | ±1.57% -8.46%   |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.946mb +0.00%  | 1.896ms -17.62%  | ±1.53% -51.17%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.107mb +0.00%  | 4.956ms -11.01%  | ±3.28% -14.59%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.636mb +0.00%  | 16.688ms -1.60%  | ±1.09% -7.63%   |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.636mb +0.00%  | 16.247ms -4.12%  | ±0.90% +124.56% |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.328mb +0.00%  | 1.806μs -9.70%   | ±2.57% +0.00%   |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.328mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.546mb +0.00% | 14.778ms -6.93%  | ±2.27% +5.07%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.613mb +0.00% | 74.139ms +0.54%  | ±0.29% -70.98%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.156mb +0.00%  | 1.713ms -12.09%  | ±2.06% -30.98%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.527mb +0.00% | 64.254ms +0.83%  | ±0.65% -51.82%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.209mb +0.00%  | 4.084ms -5.25%   | ±1.85% -5.37%   |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.690mb +0.00%  | 40.422ms -3.23%  | ±2.04% +63.17%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.690mb +0.00%  | 42.559ms +2.20%  | ±1.74% +129.23% |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.690mb +0.00%  | 41.107ms -0.74%  | ±0.22% -78.35%  |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.768mb +0.00%  | 8.265ms -1.91%   | ±1.31% +27.18%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.518mb +0.00%  | 29.600ms -1.10%  | ±2.53% -0.01%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.328mb +0.00%  | 14.400μs -1.29%  | ±1.13% +74.81%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.328mb +0.00%  | 16.683μs -0.03%  | ±3.03% +94.31%  |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.429mb +0.00% | 187.751ms +0.08% | ±0.44% -18.95%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.518mb +0.00% | 712.655ms -0.79% | ±1.13% +231.45% |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.028mb +0.00%  | 367.730ms +0.56% | ±2.29% +494.03% |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.806mb +0.00%  | 79.255ms -0.70%  | ±1.61% +715.23% |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.17%. Comparing base (b39bb55) to head (9b042dd).
Report is 2 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x    #1634   +/-   ##
=======================================
  Coverage   83.17%   83.17%           
=======================================
  Files         706      706           
  Lines       19100    19101    +1     
=======================================
+ Hits        15886    15888    +2     
+ Misses       3214     3213    -1     
Components Coverage Δ
etl 86.13% <100.00%> (+<0.01%) ⬆️
cli 84.59% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <ø> (ø)
lib-filesystem 78.02% <ø> (ø)
lib-parquet 84.36% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-snappy 91.16% <ø> (+0.46%) ⬆️
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 74.41% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 89.73% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 80.00% <ø> (ø)
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% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

2 participants