Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • DataFrame::constrain(Constraint $constraint) : self
  • Unique Constraint

Fixed

Changed

Removed

Deprecated

Security


Description

Resolves: #1546

@github-actions
Copy link
Contributor

github-actions bot commented Mar 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.878mb +0.08%  | 607.483ms -0.49% | ±0.39% -42.28% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.953mb +0.07%  | 1.133s +1.17%    | ±0.38% -88.97% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.465mb +0.00% | 903.279ms -0.39% | ±0.49% -45.16% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.601mb +0.08%  | 38.230ms -0.05%  | ±0.66% -28.66% |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.576mb +0.08%  | 605.542ms +1.08% | ±0.51% -62.63% |
+-----------------------+-------------------+------+-----+-----------------+------------------+----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.400mb +0.00% | 70.742ms -2.28% | ±0.43% -50.23% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.045mb +0.01%  | 102.017ms -3.49% | ±0.60% -2.36%   |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.427mb +0.00%  | 98.086ms -0.87%  | ±0.58% -81.38%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.279mb +0.00% | 20.988s +0.58%   | ±0.84% +105.84% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.133mb +0.02%  | 31.162ms -1.94%  | ±0.67% +83.86%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.915mb +0.01%  | 365.929ms +0.41% | ±0.48% +3.74%    |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.725mb +0.03%  | 73.351ms -0.88%  | ±0.38% -65.45%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 106.029mb +0.00% | 518.661ms -0.47% | ±1.06% +593.35%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.219mb +0.01%  | 264.715ms -0.94% | ±0.26% -72.69%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.741mb +0.03%  | 57.085ms -3.30%  | ±0.96% -48.01%   |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.062mb +0.00%  | 3.675ms -7.40%   | ±1.15% -68.73%   |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.418mb +0.00% | 185.596ms +0.07% | ±1.32% -1.27%    |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.138mb +0.00%  | 18.788ms -1.98%  | ±1.58% +88.49%   |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.937mb +0.00%  | 1.801ms -19.13%  | ±3.56% +1992.00% |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.937mb +0.00%  | 1.810ms -18.49%  | ±3.66% +37.16%   |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.098mb +0.00%  | 5.268ms -14.68%  | ±2.50% -21.87%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.627mb +0.00%  | 16.337ms -3.44%  | ±1.67% +189.25%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.627mb +0.00%  | 16.225ms -1.33%  | ±0.88% -0.73%    |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.318mb +0.00%  | 1.794μs 0.00%    | ±2.67% 0.00%     |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.318mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%     |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.536mb +0.00% | 15.487ms -7.89%  | ±0.15% -85.34%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.603mb +0.00% | 73.520ms -1.40%  | ±0.74% +32.63%   |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.146mb +0.00%  | 1.833ms -2.95%   | ±1.99% -9.14%    |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.518mb +0.00% | 65.473ms +2.61%  | ±0.59% -15.81%   |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.199mb +0.00%  | 4.298ms +7.08%   | ±2.99% +272.04%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.614mb +0.07%  | 40.714ms -1.96%  | ±0.80% -31.52%   |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.615mb +0.07%  | 41.012ms -6.18%  | ±1.95% -36.55%   |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.614mb +0.07%  | 41.329ms -5.42%  | ±0.64% +36.52%   |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.758mb +0.00%  | 8.378ms -2.34%   | ±0.21% -75.17%   |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.508mb +0.00%  | 29.703ms -1.25%  | ±1.38% +15.31%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.318mb +0.00%  | 13.800μs -10.76% | ±0.00% -100.00%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.318mb +0.00%  | 15.736μs -6.78%  | ±1.78% +111.32%  |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.419mb +0.00% | 188.377ms -0.28% | ±1.42% +220.38%  |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+

@codecov
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

Attention: Patch coverage is 73.52941% with 18 lines in your changes missing coverage. Please review.

Project coverage is 83.12%. Comparing base (520ceb9) to head (6bfeb53).
Report is 3 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1547      +/-   ##
==========================================
- Coverage   83.13%   83.12%   -0.01%     
==========================================
  Files         690      694       +4     
  Lines       18794    18861      +67     
==========================================
+ Hits        15624    15679      +55     
- Misses       3170     3182      +12     
Components Coverage Δ
etl 86.24% <73.52%> (-0.04%) ⬇️
cli 84.35% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <ø> (ø)
lib-filesystem 78.02% <ø> (ø)
lib-parquet 84.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-snappy 90.69% <ø> (ø)
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.14% <ø> (ø)
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% <ø> (ø)
🚀 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 b10f7c1 into flow-php:1.x Mar 21, 2025
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.

Constraints

1 participant