Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented Oct 30, 2023

Change Log

Added

Fixed

Changed

  • Cover most methods of `Rows` class by benchmark

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      |
+-----------------------+-------------------+------+-----+-----------+-----------+
| AvroExtractorBench    | bench_extract_10k | 5    | 3   | 44.122mb  | 423.759ms |
| CSVExtractorBench     | bench_extract_10k | 5    | 3   | 14.007mb  | 350.368ms |
| JsonExtractorBench    | bench_extract_10k | 5    | 3   | 18.669mb  | 680.914ms |
| ParquetExtractorBench | bench_extract_10k | 5    | 3   | 237.792mb | 925.438ms |
| TextExtractorBench    | bench_extract_10k | 5    | 3   | 7.277mb   | 14.625ms  |
| XmlExtractorBench     | bench_extract_10k | 5    | 3   | 7.624mb   | 557.115ms |
+-----------------------+-------------------+------+-----+-----------+-----------+
Transformers
+-----------------------------+--------------------------+------+-----+-----------------+------------------+
| benchmark                   | subject                  | revs | its | mem_peak        | mode             |
+-----------------------------+--------------------------+------+-----+-----------------+------------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 5    | 5   | 87.062mb -0.00% | 56.973ms -32.57% |
+-----------------------------+--------------------------+------+-----+-----------------+------------------+
Loaders
+--------------------+----------------+------+-----+-----------+-----------+
| benchmark          | subject        | revs | its | mem_peak  | mode      |
+--------------------+----------------+------+-----+-----------+-----------+
| AvroLoaderBench    | bench_load_10k | 5    | 3   | 219.956mb | 660.411ms |
| CSVLoaderBench     | bench_load_10k | 5    | 3   | 47.140mb  | 69.491ms  |
| JsonLoaderBench    | bench_load_10k | 5    | 3   | 88.580mb  | 64.539ms  |
| ParquetLoaderBench | bench_load_10k | 5    | 3   | 281.200mb | 953.708ms |
| TextLoaderBench    | bench_load_10k | 5    | 3   | 16.566mb  | 36.134ms  |
+--------------------+----------------+------+-----+-----------+-----------+
Building Blocks
+-------------------------+----------------------------+------+-----+----------+-----------+
| benchmark               | subject                    | revs | its | mem_peak | mode      |
+-------------------------+----------------------------+------+-----+----------+-----------+
| RowsBench               | bench_chunk_10_on_10k      | 5    | 5   | 60.694mb | 2.953ms   |
| RowsBench               | bench_diff_left_1k_on_10k  | 5    | 5   | 80.485mb | 165.999ms |
| RowsBench               | bench_diff_right_1k_on_10k | 5    | 5   | 59.011mb | 16.561ms  |
| RowsBench               | bench_drop_1k_on_10k       | 5    | 5   | 59.833mb | 2.429ms   |
| RowsBench               | bench_drop_right_1k_on_10k | 5    | 5   | 61.935mb | 2.555ms   |
| RowsBench               | bench_entries_on_10k       | 5    | 5   | 59.046mb | 3.397ms   |
| RowsBench               | bench_filter_on_10k        | 5    | 5   | 59.575mb | 17.330ms  |
| RowsBench               | bench_find_on_10k          | 5    | 5   | 59.575mb | 17.513ms  |
| RowsBench               | bench_find_one_on_10k      | 5    | 5   | 57.999mb | 16.812ms  |
| RowsBench               | bench_first_on_10k         | 5    | 5   | 57.646mb | 1.000μs   |
| RowsBench               | bench_flat_map_on_1k       | 5    | 5   | 65.880mb | 13.344ms  |
| RowsBench               | bench_map_on_10k           | 5    | 5   | 91.400mb | 55.306ms  |
| RowsBench               | bench_merge_1k_on_10k      | 5    | 5   | 60.096mb | 2.667ms   |
| RowsBench               | bench_partition_by_on_10k  | 5    | 5   | 64.467mb | 40.058ms  |
| RowsBench               | bench_remove_on_10k        | 5    | 5   | 62.196mb | 6.249ms   |
| RowsBench               | bench_sort_asc_on_1k       | 5    | 5   | 57.646mb | 45.557ms  |
| RowsBench               | bench_sort_by_on_1k        | 5    | 5   | 57.646mb | 45.464ms  |
| RowsBench               | bench_sort_desc_on_1k      | 5    | 5   | 57.646mb | 45.711ms  |
| RowsBench               | bench_sort_entries_on_1k   | 5    | 5   | 59.921mb | 9.726ms   |
| RowsBench               | bench_sort_on_1k           | 5    | 5   | 57.646mb | 36.018ms  |
| RowsBench               | bench_take_1k_on_10k       | 5    | 5   | 59.120mb | 110.871ms |
| RowsBench               | bench_take_right_1k_on_10k | 5    | 5   | 59.121mb | 920.362μs |
| RowsBench               | bench_unique_on_1k         | 5    | 5   | 80.486mb | 167.247ms |
| NativeEntryFactoryBench | bench_10k_rows             | 5    | 5   | 83.914mb | 133.239ms |
| NativeEntryFactoryBench | bench_1k_rows              | 5    | 5   | 45.440mb | 13.519ms  |
| NativeEntryFactoryBench | bench_5k_rows              | 5    | 5   | 62.730mb | 67.303ms  |
+-------------------------+----------------------------+------+-----+----------+-----------+

@stloyd stloyd merged commit 156616a into flow-php:1.x Oct 30, 2023
@stloyd stloyd deleted the chore/rows-bench-ext branch October 30, 2023 13:02
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