Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • count() method to dataframe

Fixed

Changed

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          |
+-----------------------+-------------------+------+-----+------------------+-------------------+-----------------+
| AvroExtractorBench    | bench_extract_10k | 1    | 3   | 44.088mb +0.00%  | 545.147ms +3.56%  | ±3.14% +17.56%  |
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 13.973mb +0.00%  | 464.445ms +10.90% | ±2.96% +55.98%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 18.635mb +0.00%  | 848.856ms +3.34%  | ±2.68% +284.10% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 237.735mb +0.00% | 1.305s +10.15%    | ±1.24% -32.81%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 7.243mb +0.00%   | 23.933ms +9.16%   | ±2.69% -26.47%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 7.590mb +0.00%   | 828.976ms +13.05% | ±3.12% +89.19%  |
+-----------------------+-------------------+------+-----+------------------+-------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+-----------------+------------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak        | mode             | rstdev         |
+-----------------------------+--------------------------+------+-----+-----------------+------------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 87.029mb +0.00% | 92.259ms +11.80% | ±1.25% -60.78% |
+-----------------------------+--------------------------+------+-----+-----------------+------------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev         |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| AvroLoaderBench    | bench_load_10k | 1    | 3   | 93.190mb +0.00%  | 922.037ms +7.23% | ±1.29% -17.35% |
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 47.106mb +0.00%  | 95.125ms +2.73%  | ±1.65% +23.35% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 88.540mb +0.00%  | 95.845ms +13.35% | ±1.61% +1.57%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 281.635mb +0.00% | 2.196s +9.63%    | ±1.89% -12.32% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 16.528mb +0.00%  | 48.259ms +11.54% | ±1.78% -39.27% |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+-----------------+-------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak        | mode              | rstdev          |
+-------------------------+----------------------------+------+-----+-----------------+-------------------+-----------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 60.653mb +0.00% | 5.372ms +19.23%   | ±1.42% -26.07%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 80.443mb +0.00% | 223.168ms +5.60%  | ±1.83% +15.57%  |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 58.969mb +0.00% | 23.121ms +11.85%  | ±2.72% +41.14%  |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 59.792mb +0.00% | 3.926ms +17.62%   | ±1.57% -50.84%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 59.792mb +0.00% | 3.866ms +14.01%   | ±1.21% -59.65%  |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 59.005mb +0.00% | 4.838ms +13.68%   | ±3.32% +17.16%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 59.534mb +0.00% | 27.106ms +21.06%  | ±2.23% +5.44%   |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 59.533mb +0.00% | 27.472ms +20.77%  | ±2.91% +97.88%  |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 57.605mb +0.00% | 2.794μs +21.48%   | ±1.70% +0.00%   |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 57.605mb +0.00% | 0.500μs 0.00%     | ±0.00% 0.00%    |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 65.838mb +0.00% | 18.860ms +9.84%   | ±2.32% -28.24%  |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 91.358mb +0.00% | 84.904ms +18.50%  | ±1.37% -65.13%  |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 60.054mb +0.00% | 3.950ms +10.88%   | ±0.26% -93.05%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 62.323mb +0.00% | 58.238ms +17.88%  | ±2.16% +81.86%  |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 62.155mb +0.00% | 9.732ms +25.12%   | ±1.51% -28.52%  |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 57.605mb +0.00% | 64.546ms +21.10%  | ±1.41% -47.04%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 57.605mb +0.00% | 62.374ms +13.44%  | ±1.73% +10.39%  |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 57.605mb +0.00% | 62.315ms +10.41%  | ±1.95% +88.09%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 59.879mb +0.00% | 12.176ms +17.78%  | ±3.17% +23.69%  |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 57.604mb +0.00% | 48.044ms +18.66%  | ±1.23% -48.02%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 57.605mb +0.00% | 32.893μs +30.75%  | ±0.93% -65.63%  |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 57.605mb +0.00% | 42.011μs +29.98%  | ±3.23% -5.61%   |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 80.444mb +0.00% | 227.698ms +12.64% | ±1.23% +124.15% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 91.733mb +0.01% | 202.987ms +15.97% | ±1.26% -49.89%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 47.593mb -0.01% | 99.755ms +4.71%   | ±2.00% -25.19%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 12.380mb +0.04% | 23.106ms +18.92%  | ±3.53% +189.25% |
+-------------------------+----------------------------+------+-----+-----------------+-------------------+-----------------+

@norberttech norberttech merged commit b93f43a into flow-php:1.x Oct 31, 2023
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