Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • Description to landing page examples

Fixed

Changed

Removed

Deprecated

Security


Description

Based on some questions from discord server I think we should add some description to examples, especially when things are not super obvious from the code.

image

@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 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.951mb +0.01%  | 518.478ms +1.01% | ±0.88% +278.75%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.084mb +0.01%  | 1.069s -0.49%    | ±1.19% -1.39%    |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 28.546mb +0.00% | 434.103ms +1.53% | ±2.46% +2042.65% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 3.711mb +0.01%  | 33.833ms +0.17%  | ±0.42% -70.94%   |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 3.701mb +0.01%  | 771.376ms +0.75% | ±0.66% +22.27%   |
+-----------------------+-------------------+------+-----+-----------------+------------------+------------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 116.053mb +0.00% | 59.657ms +0.05% | ±0.10% -81.64% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.213mb +0.00%  | 140.405ms +1.80% | ±0.55% +212.41% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 89.825mb +0.00%  | 116.776ms +0.84% | ±0.81% +10.73%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 123.825mb +0.00% | 1.236s +1.06%    | ±0.87% +738.67% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 16.968mb +0.00%  | 44.467ms +1.34%  | ±0.87% +12.79%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------------+----------------------------+------+-----+------------------+------------------+------------------+
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 52.633mb +0.00%  | 390.488ms -0.31% | ±1.42% +661.41%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 12.899mb +0.00%  | 80.744ms +2.39%  | ±0.38% -44.07%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 106.826mb +0.00% | 478.370ms +1.97% | ±0.82% -25.06%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.184mb +0.00%  | 243.849ms +2.58% | ±1.04% -26.84%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.022mb +0.00%  | 52.242ms +1.04%  | ±0.74% -55.46%   |
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 86.809mb +0.00%  | 3.414ms +7.45%   | ±2.39% +134.00%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 102.412mb +0.00% | 189.762ms +1.39% | ±0.68% +118.48%  |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 85.132mb +0.00%  | 19.194ms +2.15%  | ±0.85% +26.70%   |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 88.049mb +0.00%  | 1.829ms +7.65%   | ±0.84% -57.14%   |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 88.049mb +0.00%  | 1.924ms +13.35%  | ±3.56% +255.62%  |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 85.161mb +0.00%  | 2.809ms +12.47%  | ±2.62% +102.12%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 85.690mb +0.00%  | 16.804ms +8.34%  | ±0.60% -65.28%   |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 85.690mb +0.00%  | 16.972ms +6.68%  | ±0.96% -14.01%   |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 83.594mb +0.00%  | 1.806μs +13.31%  | ±2.57% -14.55%   |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 83.594mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%     |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 92.944mb +0.00%  | 12.147ms +1.08%  | ±2.07% +4623.63% |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 122.315mb +0.00% | 61.553ms +0.86%  | ±0.69% -66.72%   |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 86.210mb +0.00%  | 1.301ms +6.79%   | ±2.78% +61.20%   |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 89.561mb +0.00%  | 66.887ms +4.58%  | ±1.06% -17.12%   |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 88.311mb +0.00%  | 4.078ms +5.18%   | ±2.49% +1201.16% |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 83.743mb +0.00%  | 39.686ms +1.80%  | ±0.46% +131.20%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 83.744mb +0.00%  | 41.217ms +5.38%  | ±3.31% +2040.61% |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 83.743mb +0.00%  | 38.995ms +0.47%  | ±0.96% +2.28%    |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 86.035mb +0.00%  | 7.316ms -0.06%   | ±0.90% +34.27%   |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 83.594mb +0.00%  | 28.736ms -0.41%  | ±0.72% +122.79%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 83.594mb +0.00%  | 13.899μs +3.11%  | ±2.52% +101.47%  |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 83.594mb +0.00%  | 16.507μs +3.28%  | ±1.89% +41.05%   |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 102.414mb +0.00% | 192.914ms +0.47% | ±0.73% -20.33%   |
+-------------------------+----------------------------+------+-----+------------------+------------------+------------------+

@norberttech norberttech merged commit deede5a into flow-php:1.x Aug 11, 2024
@norberttech norberttech deleted the feature/examples-description branch December 5, 2024 20:18
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