-
-
Notifications
You must be signed in to change notification settings - Fork 48
Adjusted parquet default values for page/row group size #1774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## 1.x #1774 +/- ##
=======================================
Coverage 81.78% 81.79%
=======================================
Files 726 726
Lines 20829 20835 +6
=======================================
+ Hits 17035 17041 +6
Misses 3794 3794
🚀 New features to boost your workflow:
|
Contributor
Flow PHP - BenchmarksResults 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 | 4.871mb -0.02% | 435.292ms -1.43% | ±0.09% -79.59% |
| ExcelExtractorBench | bench_extract_10k_ods | 1 | 3 | 65.566mb -0.00% | 1.068s -0.04% | ±0.68% -35.53% |
| ExcelExtractorBench | bench_extract_10k_xlsx | 1 | 3 | 67.666mb -0.00% | 1.684s -0.23% | ±0.26% -42.39% |
| JsonExtractorBench | bench_extract_10k | 1 | 3 | 5.463mb -0.02% | 1.133s -1.26% | ±0.33% -77.66% |
| ParquetExtractorBench | bench_extract_10k | 1 | 3 | 10.670mb -0.19% | 9.216s -19.55% | ±0.56% +23.17% |
| TextExtractorBench | bench_extract_10k | 1 | 3 | 4.593mb -0.02% | 41.733ms +0.38% | ±0.99% +409.88% |
| XmlExtractorBench | bench_extract_10k | 1 | 3 | 4.579mb -0.02% | 601.821ms +0.59% | ±0.82% +43.84% |
+-----------------------+------------------------+------+-----+-----------------+------------------+-----------------+
Transformers+---------------------------------+--------------------------+------+-----+------------------+-----------------+------------------+
| benchmark | subject | revs | its | mem_peak | mode | rstdev |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+------------------+
| RenameEachEntryTransformerBench | bench_transform_10k_rows | 1 | 3 | 18.590mb -0.01% | 73.560ms +0.40% | ±1.76% +1448.68% |
| RenameEntryTransformerBench | bench_transform_10k_rows | 1 | 3 | 123.328mb -0.00% | 67.857ms +1.06% | ±1.59% +27.36% |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+------------------+
Loaders+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark | subject | revs | its | mem_peak | mode | rstdev |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench | bench_load_10k | 1 | 3 | 62.532mb -0.00% | 86.058ms +0.88% | ±0.69% +0.49% |
| JsonLoaderBench | bench_load_10k | 1 | 3 | 80.613mb -0.00% | 105.859ms +4.52% | ±1.53% +357.32% |
| ParquetLoaderBench | bench_load_10k | 1 | 3 | 835.158mb -1.86% | 20.342s -24.34% | ±0.61% +85.61% |
| TextLoaderBench | bench_load_10k | 1 | 3 | 17.896mb -0.01% | 29.699ms +1.07% | ±1.19% -18.08% |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark | subject | revs | its | mem_peak | mode | rstdev |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| EntryFactoryBench | bench_entry_factory | 1 | 3 | 106.010mb -0.00% | 659.902ms +0.29% | ±0.95% +61.54% |
| EntryFactoryBench | bench_entry_factory | 1 | 3 | 55.284mb -0.00% | 334.942ms +0.09% | ±0.71% -44.72% |
| EntryFactoryBench | bench_entry_factory | 1 | 3 | 14.870mb -0.01% | 70.658ms +0.83% | ±1.49% +92.42% |
| TypeDetectorBench | bench_type_detector | 1 | 3 | 42.540mb -0.00% | 409.653ms +2.57% | ±0.74% -16.70% |
| TypeDetectorBench | bench_type_detector | 1 | 3 | 11.598mb -0.01% | 80.946ms -0.27% | ±0.98% +1019.21% |
| RowsBench | bench_chunk_10_on_10k | 2 | 3 | 93.481mb -0.00% | 3.683ms +11.62% | ±3.57% +378.04% |
| RowsBench | bench_diff_left_1k_on_10k | 2 | 3 | 110.851mb -0.00% | 238.236ms -0.25% | ±0.29% -62.72% |
| RowsBench | bench_diff_right_1k_on_10k | 2 | 3 | 93.571mb -0.00% | 24.298ms +1.49% | ±1.08% +98.07% |
| RowsBench | bench_drop_1k_on_10k | 2 | 3 | 94.355mb -0.00% | 1.741ms +32.37% | ±2.47% +136.12% |
| RowsBench | bench_drop_right_1k_on_10k | 2 | 3 | 94.355mb -0.00% | 1.678ms +24.37% | ±0.78% -49.44% |
| RowsBench | bench_entries_on_10k | 2 | 3 | 92.516mb -0.00% | 3.557ms +6.01% | ±2.43% +57.33% |
| RowsBench | bench_filter_on_10k | 2 | 3 | 93.045mb -0.00% | 17.432ms +3.43% | ±1.61% +94.85% |
| RowsBench | bench_find_on_10k | 2 | 3 | 93.045mb -0.00% | 17.626ms +5.51% | ±2.17% +41.62% |
| RowsBench | bench_find_one_on_10k | 10 | 3 | 91.734mb -0.00% | 2.000μs +11.49% | ±0.00% -100.00% |
| RowsBench | bench_first_on_10k | 10 | 3 | 91.734mb -0.00% | 0.400μs 0.00% | ±0.00% 0.00% |
| RowsBench | bench_flat_map_on_1k | 2 | 3 | 100.794mb -0.00% | 14.984ms +4.16% | ±3.48% +1128.44% |
| RowsBench | bench_map_on_10k | 2 | 3 | 130.222mb -0.00% | 73.813ms +8.99% | ±1.21% +43.38% |
| RowsBench | bench_merge_1k_on_10k | 2 | 3 | 93.565mb -0.00% | 1.497ms +32.56% | ±1.80% -23.43% |
| RowsBench | bench_partition_by_on_10k | 2 | 3 | 96.934mb -0.00% | 63.149ms +5.13% | ±1.11% +339.49% |
| RowsBench | bench_remove_on_10k | 2 | 3 | 94.618mb -0.00% | 4.046ms +15.66% | ±3.21% +145.48% |
| RowsBench | bench_sort_asc_on_1k | 2 | 3 | 92.096mb -0.00% | 40.321ms +1.25% | ±1.46% +45.84% |
| RowsBench | bench_sort_by_on_1k | 2 | 3 | 92.096mb -0.00% | 41.043ms +3.16% | ±1.02% +57.28% |
| RowsBench | bench_sort_desc_on_1k | 2 | 3 | 92.096mb -0.00% | 40.753ms +2.78% | ±1.21% +204.13% |
| RowsBench | bench_sort_entries_on_1k | 2 | 3 | 94.177mb -0.00% | 8.071ms +2.13% | ±2.07% +60.22% |
| RowsBench | bench_sort_on_1k | 2 | 3 | 91.927mb -0.00% | 29.346ms +1.72% | ±0.87% +27.95% |
| RowsBench | bench_take_1k_on_10k | 10 | 3 | 91.734mb -0.00% | 15.333μs +8.33% | ±3.45% +9.18% |
| RowsBench | bench_take_right_1k_on_10k | 10 | 3 | 91.734mb -0.00% | 17.100μs +7.44% | ±0.95% -68.85% |
| RowsBench | bench_unique_on_1k | 2 | 3 | 110.852mb -0.00% | 243.139ms +0.81% | ±0.15% -63.14% |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
Parquet Library+--------------------+---------------------------------+------+-----+----------------+-------------------+-----------------+
| benchmark | subject | revs | its | mem_peak | mode | rstdev |
+--------------------+---------------------------------+------+-----+----------------+-------------------+-----------------+
| ParquetReaderBench | bench_page_headers | 1 | 3 | 6.668mb -0.02% | 3.327s -0.39% | ±0.47% +73.65% |
| ParquetReaderBench | bench_read_metadata | 1 | 3 | 5.353mb -0.02% | 18.189ms +0.02% | ±0.46% +96.45% |
| ParquetReaderBench | bench_read_schema | 1 | 3 | 5.353mb -0.02% | 18.256ms +0.73% | ±0.89% +66.68% |
| ParquetReaderBench | bench_read_values_all_columns | 1 | 3 | 9.102mb -0.22% | 5.618s -28.97% | ±0.56% -25.19% |
| ParquetReaderBench | bench_read_values_single_column | 1 | 3 | 6.400mb -0.31% | 230.481ms -49.71% | ±0.11% -55.48% |
| ParquetReaderBench | bench_read_values_with_limit | 1 | 3 | 6.930mb -0.47% | 29.108ms -12.82% | ±1.21% +103.06% |
| ParquetWriterBench | bench_write_batch | 1 | 3 | 9.855mb +1.73% | 194.017ms -2.55% | ±0.20% -36.55% |
| ParquetWriterBench | bench_write_gzip | 1 | 3 | 9.816mb +5.40% | 219.824ms +23.03% | ±0.54% -19.78% |
| ParquetWriterBench | bench_write_row_by_row | 1 | 3 | 9.855mb +1.73% | 192.057ms -2.84% | ±0.52% -33.87% |
| ParquetWriterBench | bench_write_snappy | 1 | 3 | 9.855mb +1.73% | 192.069ms -3.86% | ±1.13% +466.78% |
| ParquetWriterBench | bench_write_uncompressed | 1 | 3 | 9.632mb +4.04% | 192.264ms +17.49% | ±0.81% +113.78% |
+--------------------+---------------------------------+------+-----+----------------+-------------------+-----------------+
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves: #xxx
Change Log
Added
Fixed
Changed
Removed
Deprecated
Security
I noticed that with old defaults (and new approach to memory management) parquet files become pretty big.
Below benchmark helped to setup new defaults:
Which gave me following output: