Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented Nov 19, 2023

Change Log

Added

  • Add top-level options support for ChartJS

Fixed

Changed

Removed

Deprecated

Security


Description

Zrzut ekranu 2023-11-19 o 18 23 01 Zrzut ekranu 2023-11-19 o 20 43 50
    ->write(
        ChartJS::chart(
            ChartJS::pie(ref('date'), [ref('production_kwh_avg')])->setOptions(['cutout' => '20%'])
                ->setDatasetOptions(ref('production_kwh_avg'), ['label' => 'KWH']),
            output: __FLOW_OUTPUT__ . '/power_plant_pie_chart.html'
        )
    )

@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2023

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          |
+-----------------------+-------------------+------+-----+------------------+------------------+-----------------+
| AvroExtractorBench    | bench_extract_10k | 1    | 3   | 34.748mb +0.00%  | 1.148s -0.04%    | ±0.71% -27.74%  |
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.605mb +0.01%   | 301.761ms -0.10% | ±0.64% +89.72%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.771mb +0.00%   | 1.386s -0.94%    | ±1.05% +186.06% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 239.476mb +0.00% | 1.573s +0.43%    | ±0.56% -65.64%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.557mb +0.01%   | 24.341ms -1.78%  | ±0.68% -53.81%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.558mb +0.01%   | 404.366ms -0.18% | ±1.15% +369.15% |
+-----------------------+-------------------+------+-----+------------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 110.249mb +0.00% | 66.995ms +4.12% | ±2.01% +54.71% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev         |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| AvroLoaderBench    | bench_load_10k | 1    | 3   | 94.728mb +0.00%  | 446.218ms +0.49% | ±0.81% +53.02% |
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.711mb +0.00%  | 69.775ms -1.23%  | ±0.31% -64.84% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 105.311mb +0.00% | 55.731ms -2.81%  | ±0.81% -77.26% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 320.783mb +0.00% | 1.412s -0.74%    | ±0.36% -17.53% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.589mb +0.00%  | 40.568ms -1.98%  | ±0.25% +0.58%  |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------------+----------------------------+------+-----+------------------+------------------+------------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 76.295mb +0.00%  | 2.142ms -2.21%   | ±1.40% -21.20%   |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 96.086mb +0.00%  | 178.494ms -0.82% | ±0.63% -1.35%    |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 74.612mb +0.00%  | 17.971ms +0.10%  | ±0.26% -47.13%   |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 75.434mb +0.00%  | 1.636ms -4.44%   | ±0.90% -76.26%   |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 75.434mb +0.00%  | 1.643ms -9.88%   | ±2.88% -14.73%   |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 74.648mb +0.00%  | 2.553ms +1.20%   | ±0.43% -33.89%   |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 75.176mb +0.00%  | 15.652ms +13.21% | ±2.93% +87.63%   |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 75.176mb +0.00%  | 15.565ms +10.62% | ±0.78% -35.36%   |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 73.079mb +0.00%  | 1.694μs -5.57%   | ±2.83% +6.00%    |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 73.079mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%     |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 86.638mb +0.00%  | 13.354ms +5.73%  | ±2.52% -23.53%   |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 115.995mb +0.00% | 63.989ms -2.18%  | ±1.01% +40.00%   |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 75.697mb +0.00%  | 1.814ms +1.45%   | ±0.23% -91.54%   |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 77.965mb +0.00%  | 35.460ms +6.90%  | ±1.14% -15.71%   |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 77.798mb +0.00%  | 4.414ms +0.50%   | ±0.88% -41.45%   |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 73.222mb +0.00%  | 38.256ms -1.66%  | ±1.16% +69.27%   |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 73.223mb +0.00%  | 38.145ms -1.61%  | ±0.54% -25.46%   |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 73.222mb +0.00%  | 38.337ms -1.67%  | ±0.33% -12.15%   |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 75.522mb +0.00%  | 7.306ms -0.03%   | ±0.37% +1633.62% |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 73.079mb +0.00%  | 28.128ms -0.12%  | ±0.23% -38.12%   |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 73.079mb +0.00%  | 12.794μs -3.03%  | ±0.37% -84.03%   |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 73.079mb +0.00%  | 15.480μs -2.57%  | ±1.09% +83.37%   |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 96.087mb +0.00%  | 179.961ms -1.11% | ±1.01% +159.70%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 115.842mb +0.00% | 768.753ms +0.65% | ±1.09% -41.70%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 59.560mb +0.00%  | 386.901ms +1.09% | ±0.89% -29.19%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.682mb +0.00%  | 78.578ms -0.91%  | ±1.02% -7.69%    |
+-------------------------+----------------------------+------+-----+------------------+------------------+------------------+

@stloyd stloyd force-pushed the feature/chart-options branch from a4ebd6e to d1ca643 Compare November 19, 2023 19:55
@norberttech norberttech merged commit b72820f into flow-php:1.x Nov 19, 2023
@stloyd stloyd deleted the feature/chart-options branch November 19, 2023 21:28
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