Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented Nov 14, 2023

Change Log

Added

Fixed

Changed

Removed

  • Remove Faker library from benchmark

Deprecated

Security


Description

Closes #679

@github-actions
Copy link
Contributor

github-actions bot commented Nov 14, 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.753mb +0.00%  | 1.136s -0.48%    | ±0.55% +317.65% |
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.610mb +0.00%   | 302.118ms -0.20% | ±0.24% -83.17%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.777mb +0.00%   | 1.380s -1.80%    | ±0.28% -79.85%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 239.482mb +0.00% | 1.577s -0.38%    | ±0.98% +71.39%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.564mb +0.00%   | 24.701ms -1.43%  | ±1.86% +27.40%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.564mb +0.00%   | 403.949ms +0.03% | ±0.56% +54.55%  |
+-----------------------+-------------------+------+-----+------------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 110.254mb +0.00% | 67.156ms +2.27% | ±1.64% +35.85% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev         |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| AvroLoaderBench    | bench_load_10k | 1    | 3   | 94.733mb +0.00%  | 441.289ms -0.72% | ±1.10% +65.56% |
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.650mb +0.00%  | 69.709ms -1.89%  | ±0.22% -49.66% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 105.317mb +0.00% | 54.130ms -2.42%  | ±1.34% +47.28% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 320.789mb +0.00% | 1.398s -2.42%    | ±0.22% -22.08% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.594mb +0.00%  | 40.048ms -2.81%  | ±0.37% -42.85% |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+-------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode              | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+-------------------+-----------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 76.300mb +0.00%  | 2.146ms -9.62%    | ±1.04% -67.20%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 96.092mb +0.00%  | 176.597ms -1.43%  | ±0.31% -34.85%  |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 74.618mb +0.00%  | 17.599ms -1.63%   | ±0.25% +28.98%  |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 75.438mb +0.00%  | 1.634ms -5.90%    | ±2.46% +54.88%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 75.438mb +0.00%  | 1.616ms -3.40%    | ±0.72% -1.21%   |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 74.652mb +0.00%  | 2.512ms -1.75%    | ±1.95% -11.70%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 75.181mb +0.00%  | 13.949ms +0.28%   | ±0.13% -90.08%  |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 75.180mb +0.00%  | 13.905ms -1.34%   | ±0.98% -15.64%  |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 73.084mb +0.00%  | 1.600μs -10.81%   | ±0.00% -100.00% |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 73.084mb +0.00%  | 0.300μs -25.00%   | ±0.00% -100.00% |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 86.642mb +0.00%  | 12.762ms -1.19%   | ±2.35% +41.79%  |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 115.999mb +0.00% | 65.359ms -1.04%   | ±1.49% -37.43%  |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 75.701mb +0.00%  | 1.802ms -5.51%    | ±2.62% -24.38%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 77.971mb +0.00%  | 31.754ms -3.33%   | ±0.53% -17.60%  |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 77.802mb +0.00%  | 4.338ms -3.95%    | ±0.85% -49.79%  |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 73.228mb +0.00%  | 36.853ms -1.24%   | ±0.54% -45.51%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 73.229mb +0.00%  | 36.982ms -0.50%   | ±0.79% +31.46%  |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 73.228mb +0.00%  | 37.246ms -1.45%   | ±2.58% +52.84%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 75.526mb +0.00%  | 7.304ms +0.28%    | ±1.02% +7.70%   |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 73.083mb +0.00%  | 28.482ms +0.54%   | ±0.63% +48.45%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 73.084mb +0.00%  | 12.794μs -0.19%   | ±0.37% -66.32%  |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 73.084mb +0.00%  | 15.294μs -1.96%   | ±0.31% -41.00%  |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 96.093mb +0.00%  | 183.229ms +2.51%  | ±0.76% -28.60%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 109.052mb +6.23% | 745.010ms -13.67% | ±1.47% -35.80%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 56.195mb +6.00%  | 381.767ms -11.63% | ±1.01% +187.29% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.037mb +4.63%  | 81.468ms -9.24%   | ±0.96% -20.47%  |
+-------------------------+----------------------------+------+-----+------------------+-------------------+-----------------+

@stloyd stloyd force-pushed the chore/remove-faker-bench branch from 76a2d91 to ae3b8eb Compare November 15, 2023 10:01
@stloyd stloyd force-pushed the chore/remove-faker-bench branch from ae3b8eb to 326ba2a Compare November 15, 2023 10:02
@norberttech norberttech merged commit 41ca14d into flow-php:1.x Nov 15, 2023
@stloyd stloyd deleted the chore/remove-faker-bench branch November 15, 2023 13:15
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.

Improve bechmarks stability

2 participants