Skip to content

Conversation

@norberttech
Copy link
Member

@norberttech norberttech commented Feb 2, 2025

Change Log

Added

  • composer.json file to each example

Fixed

Changed

Removed

Deprecated

Security


Description

image

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 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.787mb +0.11%  | 524.267ms -5.46% | ±2.01% +484.44%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.860mb +0.11%  | 1.020s -3.72%    | ±0.90% -25.62%   |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.301mb +0.01% | 853.720ms -4.52% | ±2.70% +2478.50% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.517mb +0.12%  | 35.921ms +1.26%  | ±2.08% +434.54%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.492mb +0.12%  | 588.918ms -2.27% | ±0.84% +113.79%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+------------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev          |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.314mb +0.00% | 69.267ms -1.85% | ±1.85% +630.23% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
Loaders
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode            | rstdev          |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 63.985mb +0.01%  | 99.234ms -4.07% | ±2.40% +15.73%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.332mb +0.01%  | 92.502ms -7.53% | ±1.05% +329.48% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.172mb +0.00% | 19.692s -4.00%  | ±0.35% +109.27% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.983mb +0.03%  | 28.990ms -8.03% | ±2.82% +888.13% |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.956mb +0.01% | 450.652ms +0.13% | ±3.25% +194.71% |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.147mb +0.01%  | 220.302ms -4.82% | ±1.08% +379.38% |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.669mb +0.04%  | 48.413ms -1.95%  | ±1.78% +197.42% |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.000mb +0.01%  | 3.155ms -2.83%   | ±1.75% -31.65%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.282mb +0.00% | 182.742ms +1.63% | ±1.81% +172.45% |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.002mb +0.01%  | 18.528ms +0.83%  | ±2.95% +342.92% |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.875mb +0.01%  | 1.341ms -12.62%  | ±1.51% -41.11%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.875mb +0.01%  | 1.365ms -10.83%  | ±3.11% +703.13% |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.035mb +0.01%  | 4.092ms -4.36%   | ±0.79% -54.13%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.564mb +0.01%  | 15.921ms -2.14%  | ±0.66% +1.49%   |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.564mb +0.01%  | 16.158ms -0.70%  | ±3.05% +58.91%  |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.256mb +0.01%  | 1.794μs -10.30%  | ±2.67% +0.00%   |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.256mb +0.01%  | 0.300μs 0.00%    | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.474mb +0.01% | 14.347ms -0.90%  | ±1.02% +19.02%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.541mb +0.00% | 67.889ms -4.80%  | ±1.43% +624.76% |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.084mb +0.01%  | 1.248ms -5.54%   | ±0.87% -77.49%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.381mb +0.01% | 62.513ms -1.90%  | ±1.01% +296.20% |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.137mb +0.01%  | 3.544ms -8.15%   | ±3.26% +31.74%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.544mb +0.01%  | 41.743ms +0.84%  | ±2.52% +174.35% |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.544mb +0.01%  | 40.718ms -0.77%  | ±1.49% +356.11% |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.544mb +0.01%  | 42.006ms +2.55%  | ±1.06% -4.01%   |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.696mb +0.01%  | 8.289ms -0.37%   | ±2.73% +241.34% |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.446mb +0.01%  | 28.611ms -3.15%  | ±1.58% +7.00%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.256mb +0.01%  | 12.812μs -3.23%  | ±0.73% -66.35%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.256mb +0.01%  | 15.259μs +1.30%  | ±1.62% -35.77%  |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.283mb +0.00% | 188.448ms +2.15% | ±1.85% +177.23% |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.792mb +0.01%  | 357.448ms -1.29% | ±1.06% +40.48%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.602mb +0.05%  | 72.399ms -0.12%  | ±0.50% +89.20%  |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Feb 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.99%. Comparing base (00ff0ee) to head (e2942f0).
Report is 4 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1440      +/-   ##
==========================================
- Coverage   83.00%   82.99%   -0.02%     
==========================================
  Files         659      659              
  Lines       17721    17721              
==========================================
- Hits        14710    14708       -2     
- Misses       3011     3013       +2     
Components Coverage Δ
etl 85.75% <ø> (ø)
cli 86.73% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 97.36% <ø> (ø)
lib-filesystem 76.75% <ø> (ø)
lib-parquet 84.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 90.69% <ø> (-0.94%) ⬇️
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 77.10% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.49% <ø> (ø)
adapter-doctrine 88.54% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 78.04% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 92.85% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 80.85% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)

run: "composer test:adapter:xml"

- name: "Test - Examples"
if: ${{ matrix.php-version == '8.2' && matrix.dependencies == 'locked' }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After releasing 0.11.0 this can be removed. Some examples are failing because if all dependencies are not explicitly provided like array-dot which a dependency of etl composer will not install dependencies due to array-dot php version constraint in release 0.10.0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(fixed indention)

@norberttech norberttech merged commit 464399b into flow-php:1.x Feb 2, 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.

1 participant