Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • Another when function example

Fixed

Changed

  • Expanded Contains to support also arrays

Removed

Deprecated

Security


Description

@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.762mb +0.01%  | 560.101ms +3.52% | ±2.21% +270.99% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.829mb +0.01%  | 1.065s +1.00%    | ±1.65% -18.17%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.483mb +0.00% | 922.106ms +1.13% | ±0.20% -45.46%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.494mb +0.01%  | 34.061ms -1.48%  | ±0.98% +40.97%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.471mb +0.01%  | 592.771ms -1.74% | ±1.02% -13.57%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 108.489mb +0.00% | 59.374ms +0.52% | ±0.24% -74.90% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.037mb +0.00%  | 101.804ms +0.80% | ±1.25% -18.23%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 76.798mb +0.00%  | 94.225ms +0.40%  | ±0.72% +368.42% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.981mb +0.00% | 20.963s +1.28%   | ±0.42% +43.12%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.081mb +0.00%  | 31.438ms +0.12%  | ±0.17% -7.44%   |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 80.254mb +0.00%  | 3.696ms +6.23%   | ±1.08% -29.01%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 97.533mb +0.00%  | 187.623ms +0.51% | ±0.31% -24.92%  |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 80.253mb +0.00%  | 18.952ms -0.93%  | ±0.24% -85.90%  |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 81.129mb +0.00%  | 1.790ms +8.89%   | ±3.55% +228.41% |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 81.129mb +0.00%  | 1.837ms +2.75%   | ±1.84% +105.44% |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 79.290mb +0.00%  | 3.801ms -0.79%   | ±1.68% -15.71%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 79.819mb +0.00%  | 15.398ms -0.33%  | ±0.83% -30.50%  |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 79.819mb +0.00%  | 15.286ms -1.75%  | ±0.36% -67.70%  |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 78.510mb +0.00%  | 2.000μs +0.30%   | ±0.00% -100.00% |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 78.510mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 86.847mb +0.00%  | 13.729ms +8.64%  | ±2.69% +756.88% |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 114.195mb +0.00% | 62.651ms +3.62%  | ±1.13% +143.60% |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 80.339mb +0.00%  | 1.730ms +10.21%  | ±1.06% -67.77%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 83.632mb +0.00%  | 61.332ms -1.86%  | ±0.34% -68.07%  |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 81.391mb +0.00%  | 4.246ms +9.54%   | ±3.52% +217.29% |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 78.795mb +0.00%  | 42.938ms +4.23%  | ±1.20% +41.27%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 78.795mb +0.00%  | 43.178ms +4.76%  | ±2.14% +364.25% |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 78.795mb +0.00%  | 42.959ms +3.60%  | ±1.30% +64.20%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 80.951mb +0.00%  | 8.449ms +2.53%   | ±0.98% -23.27%  |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 78.701mb +0.00%  | 29.650ms +0.58%  | ±0.24% -70.26%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 78.510mb +0.00%  | 14.662μs +3.96%  | ±2.58% -8.17%   |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 78.510mb +0.00%  | 16.448μs +6.68%  | ±3.74% +310.39% |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 97.534mb +0.00%  | 190.883ms +0.39% | ±0.93% +117.45% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 98.646mb +0.00%  | 452.235ms +2.05% | ±0.09% -93.66%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 51.476mb +0.00%  | 226.982ms +1.67% | ±0.69% +10.36%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 13.648mb +0.00%  | 48.880ms -2.45%  | ±1.31% -20.18%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 43.780mb +0.00%  | 364.932ms +0.94% | ±0.47% +780.76% |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 11.589mb +0.00%  | 74.171ms +0.20%  | ±0.91% -19.34%  |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.51%. Comparing base (e0000ff) to head (b698d53).
Report is 8 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x    #1387   +/-   ##
=======================================
  Coverage   82.51%   82.51%           
=======================================
  Files         648      649    +1     
  Lines       17395    17418   +23     
=======================================
+ Hits        14354    14373   +19     
- Misses       3041     3045    +4     
Components Coverage Δ
etl 85.81% <83.33%> (-0.02%) ⬇️
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 norberttech merged commit f244135 into flow-php:1.x Jan 17, 2025
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.

1 participant