Skip to content

Conversation

@Bellangelo
Copy link
Contributor

Change Log

Added

Fixed

Changed

  • Used the new `FlowTestCase` in all the ETL tests

Removed

Deprecated

Security


Description

Partially addresses #745.

Following the work of #1291 we will use the new FlowTestCase in all the ETL tests.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 29, 2024

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.715mb +0.01%  | 519.569ms +0.07% | ±0.40% +15.43% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.819mb +0.01%  | 1.115s -0.15%    | ±0.24% -22.57% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.465mb +0.00% | 911.253ms +0.85% | ±0.34% -9.01%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.448mb +0.01%  | 33.867ms +0.34%  | ±0.63% -54.90% |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.424mb +0.01%  | 666.164ms -0.55% | ±1.88% -6.78%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 114.445mb +0.00% | 61.766ms +1.75% | ±0.19% -85.97% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 55.188mb +0.00%  | 114.062ms +1.79% | ±1.09% +59.67%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 85.655mb +0.00%  | 102.244ms +1.46% | ±0.68% -54.64%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 167.441mb +0.00% | 19.310s +0.08%   | ±2.39% +556.98% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.273mb +0.00%  | 44.596ms +1.28%  | ±0.15% -66.47%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 85.501mb +0.00%  | 3.305ms +6.73%   | ±0.55% -74.27%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 102.771mb +0.00% | 184.891ms -1.37% | ±0.21% -71.40%  |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 85.491mb +0.00%  | 18.605ms -0.91%  | ±0.59% +23.38%  |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 86.376mb +0.00%  | 1.727ms +24.07%  | ±0.61% -65.41%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 86.376mb +0.00%  | 1.732ms +21.82%  | ±1.09% -69.32%  |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 84.537mb +0.00%  | 2.444ms +4.94%   | ±2.30% +52.40%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 85.066mb +0.00%  | 15.311ms +4.97%  | ±2.13% +53.00%  |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 85.066mb +0.00%  | 14.937ms -0.31%  | ±1.93% +409.50% |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 83.757mb +0.00%  | 1.900μs +11.76%  | ±0.00% +0.00%   |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 83.757mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 92.335mb +0.00%  | 12.739ms -1.49%  | ±0.38% -71.73%  |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 120.642mb +0.00% | 60.064ms -0.11%  | ±3.53% +495.76% |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 85.586mb +0.00%  | 1.233ms -8.86%   | ±1.49% -58.06%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 88.874mb +0.00%  | 58.419ms -3.03%  | ±0.52% +162.05% |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 86.638mb +0.00%  | 3.714ms +3.07%   | ±1.31% +9.78%   |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 84.032mb +0.00%  | 40.311ms -2.52%  | ±1.04% +121.40% |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 84.033mb +0.00%  | 39.812ms -4.83%  | ±1.25% -32.45%  |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 84.032mb +0.00%  | 40.486ms -1.47%  | ±0.78% -19.87%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 86.197mb +0.00%  | 7.668ms +0.06%   | ±0.66% +7.34%   |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 83.947mb +0.00%  | 29.489ms +0.90%  | ±0.88% -18.44%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 83.757mb +0.00%  | 13.341μs +0.92%  | ±1.88% +45.65%  |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 83.757mb +0.00%  | 15.079μs -1.75%  | ±0.82% -65.98%  |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 102.776mb +0.00% | 188.067ms -1.33% | ±0.68% +104.83% |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 50.656mb +0.00%  | 403.103ms +0.89% | ±1.08% +76.11%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 13.071mb +0.00%  | 80.435ms -2.09%  | ±0.29% -67.27%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.913mb +0.00% | 483.073ms +0.08% | ±1.10% +11.11%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.104mb +0.00%  | 244.896ms +1.72% | ±1.49% -33.24%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.626mb +0.00%  | 53.602ms -0.64%  | ±2.09% +309.23% |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Dec 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.80%. Comparing base (7164436) to head (3b02e57).
Report is 2 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x    #1303   +/-   ##
=======================================
  Coverage   81.80%   81.80%           
=======================================
  Files         569      569           
  Lines       15621    15621           
=======================================
  Hits        12779    12779           
  Misses       2842     2842           
Flag Coverage Δ
adapter-chartjs 81.80% <ø> (ø)
adapter-csv 81.80% <ø> (ø)
adapter-doctrine 81.80% <ø> (ø)
adapter-elasticsearch 81.80% <ø> (ø)
adapter-google-sheet 81.80% <ø> (ø)
adapter-http 81.80% <ø> (ø)
adapter-json 81.80% <ø> (ø)
adapter-logger 81.80% <ø> (ø)
adapter-meilisearch 81.80% <ø> (ø)
adapter-parquet 81.80% <ø> (ø)
adapter-text 81.80% <ø> (ø)
adapter-xml 81.80% <ø> (ø)
bridge-filesystem-async-aws 81.80% <ø> (ø)
bridge-filesystem-azure 81.80% <ø> (ø)
bridge-monolog-http 81.80% <ø> (ø)
bridge-symfony-http-foundation 81.80% <ø> (ø)
cli 81.80% <ø> (ø)
etl 81.80% <ø> (ø)
lib-azure-sdk 81.80% <ø> (ø)
lib-doctrine-dbal-bulk 81.80% <ø> (ø)
lib-filesystem 81.80% <ø> (ø)
lib-parquet 81.80% <ø> (ø)
lib-parquet-viewer 81.80% <ø> (ø)
lib-rdsl 81.80% <ø> (ø)
lib-snappy 81.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Bellangelo Bellangelo closed this Dec 29, 2024
@Bellangelo Bellangelo reopened this Dec 29, 2024
@norberttech norberttech merged commit 41f1d96 into flow-php:1.x Dec 30, 2024
22 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