Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • typed functions to array-dot library

Fixed

Changed

Removed

Deprecated

Security


Description

@github-actions
Copy link
Contributor

github-actions bot commented Jul 21, 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   | 3.914mb +0.24%  | 508.928ms -0.20% | ±2.92% +186.68% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 3.946mb +0.24%  | 1.067s -1.71%    | ±0.69% -32.65%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 28.507mb +0.03% | 423.975ms -1.88% | ±0.94% -31.63%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 3.674mb +0.26%  | 33.500ms -4.17%  | ±1.28% -25.92%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 3.620mb +0.26%  | 433.216ms -0.17% | ±0.28% -88.35%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev        |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 115.966mb +0.01% | 59.203ms -1.30% | ±1.07% -8.22% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
Loaders
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode            | rstdev          |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.069mb +0.02%  | 84.771ms +0.56% | ±1.67% +109.29% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 106.501mb +0.01% | 51.286ms -0.97% | ±0.79% -37.97%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 123.783mb +0.01% | 1.222s -0.09%   | ±0.28% -54.47%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 16.863mb +0.42%  | 44.313ms +1.54% | ±0.26% -66.01%  |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 59.697mb +0.02%  | 432.312ms +1.56% | ±1.26% +359.64% |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 14.236mb +0.07%  | 86.251ms +1.69%  | ±3.43% +799.26% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 116.516mb +0.01% | 492.794ms -0.61% | ±0.77% -4.95%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 59.994mb +0.02%  | 249.741ms -2.16% | ±3.44% +127.46% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.928mb +0.06%  | 53.017ms +0.73%  | ±2.94% +62.45%  |
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 86.786mb +0.01%  | 3.177ms -2.03%   | ±0.23% -83.30%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 102.384mb +0.01% | 192.557ms +1.63% | ±0.97% +14.07%  |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 85.104mb +0.01%  | 19.159ms +1.78%  | ±0.59% +0.35%   |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 88.026mb +0.01%  | 1.652ms -8.05%   | ±0.73% -75.18%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 88.026mb +0.01%  | 1.660ms -2.19%   | ±1.70% -16.87%  |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 85.138mb +0.01%  | 2.776ms +7.97%   | ±3.24% +80.52%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 85.667mb +0.01%  | 17.838ms +11.60% | ±2.07% -2.83%   |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 85.667mb +0.01%  | 17.816ms +14.63% | ±0.33% -69.53%  |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 83.571mb +0.01%  | 1.706μs -4.90%   | ±2.72% +1.92%   |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 83.571mb +0.01%  | 0.300μs -25.00%  | ±0.00% -100.00% |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 92.921mb +0.01%  | 12.161ms -0.19%  | ±0.78% -49.01%  |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 122.292mb +0.01% | 59.162ms -4.04%  | ±0.23% -61.41%  |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 86.187mb +0.01%  | 1.224ms -24.61%  | ±1.01% -47.41%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 89.532mb +0.01%  | 58.671ms -3.33%  | ±1.64% -33.68%  |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 88.288mb +0.01%  | 3.878ms -9.33%   | ±1.47% +276.97% |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 83.714mb +0.01%  | 39.507ms +0.91%  | ±0.60% -50.33%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 83.715mb +0.01%  | 38.978ms -2.63%  | ±0.71% +73.47%  |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 83.714mb +0.01%  | 39.171ms -0.15%  | ±1.19% +83.52%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 86.012mb +0.01%  | 7.166ms -1.66%   | ±1.96% +218.72% |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 83.571mb +0.01%  | 28.397ms -0.40%  | ±0.55% -62.07%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 83.571mb +0.01%  | 13.476μs -1.00%  | ±1.41% +104.49% |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 83.571mb +0.01%  | 15.766μs -1.56%  | ±1.30% -4.48%   |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 102.385mb +0.01% | 192.915ms +0.48% | ±0.86% +83.01%  |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@norberttech norberttech merged commit 964409b into flow-php:1.x Jul 21, 2024
@norberttech norberttech deleted the feature/array-dot-get-type branch December 5, 2024 20:19
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