Skip to content

Conversation

@mleczakm
Copy link
Contributor

@mleczakm mleczakm commented Jan 23, 2025

Change Log

Added

Fixed

Changed

  • NativeEntryFactory renamed to EntryFactory

Removed

  • EntryFactory interface

Deprecated

Security


Description

Fixing #1398

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 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.04%  | 555.730ms -0.39% | ±0.05% -9.81%   |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.856mb -0.04%  | 1.078s +0.77%    | ±0.92% +140.39% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.504mb -0.00% | 907.991ms -0.43% | ±0.34% -64.84%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.517mb -0.05%  | 35.652ms -0.63%  | ±0.59% +9.59%   |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.494mb -0.04%  | 608.624ms +0.37% | ±0.42% -37.36%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.316mb -0.00% | 70.623ms -3.53% | ±0.99% -47.35% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 63.956mb -0.06%  | 104.024ms -0.58% | ±2.24% +202.68% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.327mb -0.00%  | 97.678ms -1.48%  | ±1.21% +542.43% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.223mb -0.00% | 20.659s -0.49%   | ±0.30% -45.91%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.983mb -0.01%  | 30.828ms -0.11%  | ±1.28% -15.78%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.951mb        | 460.546ms        | ±0.73%          |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.142mb         | 228.339ms        | ±2.15%          |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.664mb         | 50.316ms         | ±0.77%          |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.002mb -0.00%  | 3.649ms +16.00%  | ±1.15% +320.47% |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.284mb -0.00% | 194.667ms +1.13% | ±0.41% -32.69%  |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.004mb -0.00%  | 19.298ms +0.53%  | ±1.31% +619.75% |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.877mb -0.00%  | 1.542ms +6.11%   | ±3.05% -14.15%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.877mb -0.00%  | 1.443ms -6.90%   | ±2.66% -7.47%   |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.037mb -0.00%  | 4.944ms +11.92%  | ±1.57% -34.18%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.566mb -0.00%  | 17.899ms -5.47%  | ±3.87% +227.77% |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.566mb -0.00%  | 16.811ms -10.61% | ±0.32% -51.52%  |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.258mb -0.00%  | 1.894μs 0.00%    | ±2.53% 0.00%    |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.258mb -0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.476mb -0.00% | 15.144ms +3.49%  | ±1.94% -25.19%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.543mb -0.00% | 72.149ms -2.97%  | ±0.93% -5.69%   |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.086mb -0.00%  | 1.251ms -0.97%   | ±0.89% -63.49%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.383mb -0.00% | 66.564ms +1.94%  | ±2.05% +168.29% |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.139mb -0.00%  | 3.709ms -0.16%   | ±1.35% -0.81%   |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.546mb -0.00%  | 43.163ms +1.10%  | ±0.21% -21.80%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.546mb -0.00%  | 45.357ms +7.47%  | ±2.84% +530.47% |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.546mb -0.00%  | 42.433ms -0.11%  | ±1.00% -14.28%  |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.698mb -0.00%  | 8.173ms -2.01%   | ±0.57% +35.69%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.448mb -0.00%  | 29.705ms +0.43%  | ±0.41% -63.11%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.258mb -0.00%  | 13.262μs +1.87%  | ±2.87% +165.42% |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.258mb -0.00%  | 15.279μs -0.82%  | ±0.81% +166.30% |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.285mb -0.00% | 195.466ms -0.35% | ±1.09% +236.10% |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.790mb -0.00%  | 363.441ms +0.16% | ±0.74% +183.04% |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.599mb -0.00%  | 72.437ms -0.20%  | ±0.96% -46.65%  |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 81.10236% with 24 lines in your changes missing coverage. Please review.

Project coverage is 82.51%. Comparing base (cb23d67) to head (cfd0f59).
Report is 3 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x    #1402   +/-   ##
=======================================
  Coverage   82.51%   82.51%           
=======================================
  Files         654      654           
  Lines       17538    17538           
=======================================
  Hits        14472    14472           
  Misses       3066     3066           
Components Coverage Δ
etl 85.76% <81.10%> (ø)
cli 85.17% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 97.36% <ø> (ø)
lib-filesystem 76.23% <ø> (ø)
lib-parquet 84.57% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 91.16% <ø> (ø)
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 90.14% <ø> (ø)
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 59.88% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)

@norberttech
Copy link
Member

could you run composer build:docs and commit changes in dsl.json? Thanks!🙏

@github-actions github-actions bot added size: L and removed size: S labels Jan 24, 2025
@norberttech norberttech merged commit 682827e into flow-php:1.x Jan 25, 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.

2 participants