Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • type_mixed()
  • more tests in optional type

Fixed

Changed

Removed

Deprecated

Security


Description

@norberttech norberttech moved this from Todo to In Progress in Roadmap May 24, 2025
@norberttech norberttech added this to the 0.17.0 milestone May 24, 2025
@norberttech norberttech enabled auto-merge (squash) May 24, 2025 09:20
@github-actions
Copy link
Contributor

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.775mb +0.04%  | 417.225ms +0.95% | ±0.70% +94.71%  |
| ExcelExtractorBench   | bench_extract_10k_ods  | 1    | 3   | 65.487mb +0.00% | 1.041s -0.34%    | ±0.74% +187.23% |
| ExcelExtractorBench   | bench_extract_10k_xlsx | 1    | 3   | 67.533mb +0.00% | 1.675s -0.85%    | ±1.86% -24.57%  |
| JsonExtractorBench    | bench_extract_10k      | 1    | 3   | 5.019mb +0.05%  | 1.269s -0.97%    | ±0.41% +215.19% |
| ParquetExtractorBench | bench_extract_10k      | 1    | 3   | 86.321mb +0.00% | 909.318ms -0.41% | ±1.28% -35.38%  |
| TextExtractorBench    | bench_extract_10k      | 1    | 3   | 4.499mb +0.04%  | 38.458ms +0.11%  | ±0.24% -80.40%  |
| XmlExtractorBench     | bench_extract_10k      | 1    | 3   | 4.494mb +0.04%  | 596.021ms -0.90% | ±1.22% -7.83%   |
+-----------------------+------------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+---------------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                       | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench     | bench_transform_10k_rows | 1    | 3   | 123.236mb +0.00% | 66.121ms -0.15% | ±0.98% -15.87% |
| RenameEachEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 18.498mb +0.01%  | 73.216ms +1.40% | ±0.80% -19.61% |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+-----------------+----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode            | rstdev         |
+--------------------+----------------+------+-----+------------------+-----------------+----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 62.435mb +0.00%  | 86.440ms +1.43% | ±0.34% -81.69% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 79.706mb +0.00%  | 96.589ms -0.86% | ±0.12% -84.13% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.211mb +0.00% | 20.910s +2.21%  | ±0.38% -20.59% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.805mb +0.01%  | 31.197ms -0.61% | ±0.22% -54.31% |
+--------------------+----------------+------+-----+------------------+-----------------+----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 101.784mb +0.00% | 648.390ms +2.21% | ±0.76% +71.32%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 53.135mb +0.00%  | 329.194ms -0.31% | ±1.17% -35.65%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.385mb +0.02%  | 68.473ms -1.85%  | ±0.49% -74.54%   |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 93.389mb +0.00%  | 3.179ms -16.71%  | ±1.91% -12.52%   |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 110.759mb +0.00% | 238.024ms +1.06% | ±1.68% +1076.54% |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 93.479mb +0.00%  | 24.060ms +3.44%  | ±0.70% +25.03%   |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 94.264mb +0.00%  | 1.420ms +7.47%   | ±1.12% -70.36%   |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 94.264mb +0.00%  | 1.392ms +1.58%   | ±3.47% +78.63%   |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 92.425mb +0.00%  | 3.356ms +2.64%   | ±1.72% -51.47%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 92.954mb +0.00%  | 15.322ms -0.14%  | ±2.06% +132.39%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 92.954mb +0.00%  | 15.039ms -1.24%  | ±1.39% +3.38%    |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 91.643mb +0.00%  | 1.800μs -9.73%   | ±0.00% -100.00%  |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 91.643mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%     |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 100.703mb +0.00% | 14.284ms +0.78%  | ±0.84% -72.37%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 130.130mb +0.00% | 67.548ms +1.22%  | ±1.49% +117.25%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 93.473mb +0.00%  | 1.336ms +3.63%   | ±1.13% -54.91%   |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 96.841mb +0.00%  | 61.541ms +0.36%  | ±0.76% +275.88%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 94.526mb +0.00%  | 3.664ms +4.35%   | ±1.45% -58.31%   |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 92.004mb +0.00%  | 39.770ms -0.62%  | ±3.37% +393.16%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 92.004mb +0.00%  | 40.350ms +0.62%  | ±0.34% -66.08%   |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 92.004mb +0.00%  | 40.198ms +1.95%  | ±1.18% -31.57%   |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 94.085mb +0.00%  | 8.562ms +6.64%   | ±1.30% -26.16%   |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 91.835mb +0.00%  | 29.342ms -1.57%  | ±0.44% -84.20%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 91.643mb +0.00%  | 14.510μs +8.42%  | ±3.05% +90.31%   |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 91.643mb +0.00%  | 15.566μs -1.07%  | ±1.31% -50.02%   |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 110.759mb +0.00% | 243.169ms +2.10% | ±0.55% +43.24%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 42.070mb +0.01%  | 429.076ms +0.95% | ±0.76% -5.37%    |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.448mb +0.02%  | 84.994ms -0.38%  | ±0.40% -50.05%   |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+

@norberttech norberttech merged commit ee344a1 into 1.x May 24, 2025
20 checks passed
@norberttech norberttech deleted the feature/type-mixed branch May 24, 2025 09:26
@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap May 24, 2025
@codecov
Copy link

codecov bot commented May 24, 2025

Codecov Report

Attention: Patch coverage is 9.52381% with 19 lines in your changes missing coverage. Please review.

Project coverage is 82.05%. Comparing base (8df3e3c) to head (3da44fd).
Report is 2 commits behind head on 1.x.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1678      +/-   ##
==========================================
- Coverage   82.11%   82.05%   -0.07%     
==========================================
  Files         703      704       +1     
  Lines       19065    19083      +18     
==========================================
+ Hits        15655    15658       +3     
- Misses       3410     3425      +15     
Components Coverage Δ
etl 88.35% <ø> (ø)
cli 84.42% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <ø> (ø)
lib-filesystem 78.02% <ø> (ø)
lib-parquet 84.37% <ø> (ø)
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 90.18% <ø> (ø)
adapter-doctrine 89.69% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 83.87% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 78.64% <ø> (ø)
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants