Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • type_positive_integer()
  • type_non_empty_string()

Fixed

  • Removed references to Flow\ETL namespace from Flow\Types

Changed

Removed

Deprecated

Security


Description

@norberttech norberttech linked an issue May 19, 2025 that may be closed by this pull request
@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.767mb +0.16%  | 618.729ms +3.41% | ±1.81% +1894.00% |
| ExcelExtractorBench   | bench_extract_10k | 1    | 3   | 75.281mb +0.01% | 1.501s -1.21%    | ±0.26% +214.07%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 5.011mb +0.15%  | 1.271s +0.40%    | ±1.33% +113.86%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.314mb +0.01% | 917.312ms -0.00% | ±1.16% +1259.93% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.492mb +0.17%  | 38.715ms +0.35%  | ±0.69% +15.89%   |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.482mb +0.27%  | 600.495ms -0.15% | ±0.69% -7.00%    |
+-----------------------+-------------------+------+-----+-----------------+------------------+------------------+
Transformers
+---------------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                       | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench     | bench_transform_10k_rows | 1    | 3   | 123.228mb +0.01% | 66.135ms +0.01% | ±0.67% -44.46% |
| RenameEachEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 18.490mb +0.04%  | 73.483ms +0.74% | ±0.52% -78.13% |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode            | rstdev          |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 62.427mb +0.01%  | 87.946ms +2.06% | ±0.86% -54.49%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 79.699mb +0.01%  | 96.144ms -0.05% | ±1.45% +217.69% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 165.380mb +0.01% | 20.695s -0.27%  | ±0.35% +7.99%   |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.798mb +0.04%  | 30.981ms -0.20% | ±0.50% -3.95%   |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 101.777mb +0.01% | 645.787ms +0.45% | ±0.37% -31.53%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 53.127mb +0.01%  | 325.901ms -0.38% | ±0.53% -13.84%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.377mb +0.05%  | 68.937ms -1.19%  | ±0.26% -58.08%  |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 93.382mb +0.01%  | 3.447ms -5.37%   | ±2.87% +67.54%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 110.751mb +0.01% | 234.298ms -2.79% | ±0.75% +5.33%   |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 93.471mb +0.01%  | 23.874ms -2.60%  | ±0.77% -26.52%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 94.256mb +0.01%  | 1.518ms -3.67%   | ±2.08% -35.04%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 94.256mb +0.01%  | 1.540ms -0.46%   | ±2.82% +36.40%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 92.417mb +0.01%  | 3.517ms +2.69%   | ±1.11% -66.38%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 92.946mb +0.01%  | 15.727ms +2.01%  | ±1.67% +45.17%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 92.946mb +0.01%  | 15.457ms -1.80%  | ±1.67% +50.14%  |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 91.635mb +0.01%  | 1.806μs -9.42%   | ±2.57% +7.27%   |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 91.635mb +0.01%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 100.695mb +0.01% | 14.339ms -3.25%  | ±2.25% -16.19%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 130.123mb +0.01% | 67.392ms -2.19%  | ±1.00% -50.53%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 93.466mb +0.01%  | 1.380ms +1.65%   | ±1.13% +0.08%   |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 96.834mb +0.01%  | 62.276ms -0.85%  | ±0.12% -70.67%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 94.519mb +0.01%  | 3.658ms -5.88%   | ±0.75% -72.12%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 91.996mb +0.01%  | 39.545ms -1.19%  | ±0.48% -50.93%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 91.996mb +0.01%  | 39.192ms -1.78%  | ±1.34% +126.97% |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 91.996mb +0.01%  | 40.095ms -3.02%  | ±1.43% -5.09%   |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 94.078mb +0.01%  | 8.091ms -1.24%   | ±1.11% +91.74%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 91.828mb +0.01%  | 29.472ms -1.04%  | ±0.38% -36.19%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 91.635mb +0.01%  | 13.959μs -3.47%  | ±1.77% -50.62%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 91.635mb +0.01%  | 16.021μs +0.34%  | ±3.55% +33.01%  |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 110.752mb +0.01% | 237.800ms -2.63% | ±0.82% -26.99%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 42.063mb +0.02%  | 424.718ms +1.41% | ±0.34% +270.59% |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.441mb +0.06%  | 85.970ms +0.44%  | ±0.54% +42.85%  |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@norberttech norberttech enabled auto-merge (squash) May 19, 2025 10:32
@norberttech norberttech merged commit 2e6b89b into 1.x May 19, 2025
21 checks passed
@norberttech norberttech deleted the 1657-new-types-positive_integer-and-non_empty_string branch May 19, 2025 10:32
@codecov
Copy link

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 28.44037% with 78 lines in your changes missing coverage. Please review.

Project coverage is 82.05%. Comparing base (b2b8113) to head (fcbf779).
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    #1658      +/-   ##
==========================================
- Coverage   82.31%   82.05%   -0.27%     
==========================================
  Files         701      703       +2     
  Lines       18993    19068      +75     
==========================================
+ Hits        15635    15646      +11     
- Misses       3358     3422      +64     
Components Coverage Δ
etl 88.27% <ø> (+0.22%) ⬆️
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.62% <ø> (+0.93%) ⬆️
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.69% <ø> (ø)
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 78.42% <ø> (ø)
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

None yet

Development

Successfully merging this pull request may close these issues.

New types, positive_integer and non_empty_string

2 participants