Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

Fixed

Changed

  • Make Date and DateTime comparable

Removed

Deprecated

Security


Description

Resolves: #1544

@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.877mb +0.02%  | 607.217ms -1.83% | ±0.32% -55.77%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.952mb +0.02%  | 1.130s +0.90%    | ±1.95% +725.72% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.465mb +0.00% | 901.567ms -0.64% | ±0.53% +53.04%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.601mb +0.02%  | 38.730ms +1.26%  | ±2.00% +98.61%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.576mb +0.02%  | 607.809ms +0.08% | ±0.49% -74.98%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev          |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.399mb +0.00% | 70.755ms +0.87% | ±1.63% +471.72% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev         |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.044mb +0.00%  | 102.711ms -2.38% | ±0.79% +98.33% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.427mb +0.00%  | 96.919ms -2.39%  | ±0.65% -56.83% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.279mb +0.00% | 20.433s -2.67%   | ±0.12% +26.80% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.133mb +0.01%  | 31.279ms -1.10%  | ±0.18% -51.87% |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.915mb +0.00%  | 361.365ms -0.91% | ±0.36% -48.08%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.725mb +0.00%  | 73.546ms -1.01%  | ±0.49% -40.18%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 106.028mb +0.00% | 512.540ms -1.17% | ±0.90% +428.97%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.219mb +0.00%  | 259.716ms -3.94% | ±0.60% -57.36%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.741mb +0.01%  | 56.436ms -2.32%  | ±0.81% -35.74%   |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.062mb +0.00%  | 3.203ms -19.50%  | ±3.01% +2.08%    |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.418mb +0.00% | 184.109ms +0.37% | ±0.32% -78.57%   |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.138mb +0.00%  | 18.235ms -1.14%  | ±1.23% +1094.72% |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.936mb +0.00%  | 1.461ms -30.84%  | ±3.50% +48.44%   |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.936mb +0.00%  | 1.429ms -32.93%  | ±2.94% +43.11%   |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.097mb +0.00%  | 5.063ms -7.23%   | ±2.64% +164.07%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.626mb +0.00%  | 16.475ms -0.47%  | ±1.07% +121.07%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.626mb +0.00%  | 16.195ms -0.18%  | ±1.22% +80.32%   |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.317mb +0.00%  | 1.806μs -9.70%   | ±2.57% +0.00%    |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.317mb +0.00%  | 0.300μs 0.00%    | ±0.00% 0.00%     |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.535mb +0.00% | 15.196ms -11.44% | ±0.92% -12.18%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.603mb +0.00% | 72.165ms -4.57%  | ±1.52% +42.51%   |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.146mb +0.00%  | 1.594ms -21.86%  | ±3.21% +123.71%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.517mb +0.00% | 64.144ms -0.98%  | ±0.48% +1848.03% |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.199mb +0.00%  | 3.880ms -16.05%  | ±1.10% -28.69%   |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.614mb +0.00%  | 41.036ms -3.75%  | ±0.27% -85.05%   |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.614mb +0.00%  | 41.660ms -2.64%  | ±1.85% +86.61%   |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.614mb +0.00%  | 42.822ms -0.85%  | ±1.65% +57.55%   |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.758mb +0.00%  | 8.228ms -2.85%   | ±0.96% -45.77%   |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.508mb +0.00%  | 29.493ms -4.55%  | ±1.38% +31.24%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.317mb +0.00%  | 13.542μs -10.42% | ±2.20% -32.48%   |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.317mb +0.00%  | 15.380μs -11.18% | ±1.10% -64.49%   |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.419mb +0.00% | 186.990ms -0.04% | ±0.26% -47.87%   |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+

@codecov
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.13%. Comparing base (ae2a92b) to head (e2b25fc).
Report is 3 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1545      +/-   ##
==========================================
+ Coverage   83.10%   83.13%   +0.03%     
==========================================
  Files         690      690              
  Lines       18790    18794       +4     
==========================================
+ Hits        15616    15625       +9     
+ Misses       3174     3169       -5     
Components Coverage Δ
etl 86.27% <100.00%> (+0.06%) ⬆️
cli 84.35% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <ø> (ø)
lib-filesystem 78.02% <ø> (ø)
lib-parquet 84.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-snappy 91.16% <ø> (ø)
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.14% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 78.04% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 80.85% <ø> (ø)
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.

@norberttech norberttech merged commit 520ceb9 into flow-php:1.x Mar 20, 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.

Allow for comparison between Date and DateTimeType

1 participant