Skip to content
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

Integration/symfony indexof #1473

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

f-lapinski
Copy link
Contributor

Change Log

Added

  • Added IndexOf function with $offset and $ignoreCase parameters and Tests

Fixed

Changed

Removed

Deprecated

Security


Description

Function added with IgnoreCase as parameter

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          |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.799mb +0.01%  | 551.764ms -0.40% | ±0.22% +274.95% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.872mb +0.01%  | 1.067s +0.77%    | ±1.16% +14.09%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.316mb +0.00% | 899.295ms -0.11% | ±0.23% -74.35%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.529mb +0.02%  | 35.577ms -4.82%  | ±0.17% -82.02%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.504mb +0.02%  | 608.628ms -0.06% | ±2.64% +543.59% |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev        |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.326mb +0.00% | 70.801ms +2.01% | ±0.34% -0.30% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 63.999mb +0.00%  | 105.442ms +2.90% | ±2.63% +603.17% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.345mb +0.00%  | 99.739ms +2.77%  | ±0.65% +38.48%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.187mb +0.00% | 20.570s +0.30%   | ±0.26% +25.27%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.996mb +0.00%  | 31.093ms +5.36%  | ±0.28% -80.52%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.969mb +0.00% | 454.928ms +0.79% | ±0.84% -66.89%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.159mb +0.00%  | 230.905ms +0.58% | ±0.45% +6.30%    |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.681mb +0.00%  | 50.789ms +1.61%  | ±1.54% +98.57%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.804mb +0.00%  | 362.276ms +0.74% | ±2.38% +240.95%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.614mb +0.01%  | 72.778ms +0.52%  | ±0.39% -53.97%   |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.012mb +0.00%  | 3.151ms +0.77%   | ±1.04% -5.88%    |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.296mb +0.00% | 189.920ms +0.93% | ±1.18% +52.13%   |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.016mb +0.00%  | 19.502ms +2.93%  | ±1.45% +95.27%   |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.887mb +0.00%  | 1.448ms +3.10%   | ±1.15% +3852.38% |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.887mb +0.00%  | 1.574ms +9.61%   | ±3.03% +184.56%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.048mb +0.00%  | 4.454ms +9.97%   | ±1.04% -47.15%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.577mb +0.00%  | 16.656ms +2.75%  | ±1.56% -8.96%    |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.577mb +0.00%  | 16.677ms +3.02%  | ±0.80% -33.67%   |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.268mb +0.00%  | 1.800μs +5.51%   | ±0.00% -100.00%  |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.268mb +0.00%  | 0.300μs 0.00%    | ±0.00% 0.00%     |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.486mb +0.00% | 14.734ms +3.05%  | ±0.76% -13.97%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.553mb +0.00% | 70.310ms -0.04%  | ±1.83% +795.88%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.096mb +0.00%  | 1.306ms +6.60%   | ±0.89% -8.15%    |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.395mb +0.00% | 64.713ms +2.84%  | ±0.37% -67.19%   |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.149mb +0.00%  | 4.130ms +13.94%  | ±2.31% +177.52%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.558mb +0.00%  | 42.816ms +3.13%  | ±0.91% +31.00%   |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.558mb +0.00%  | 43.705ms +5.93%  | ±2.97% +136.62%  |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.558mb +0.00%  | 42.278ms +0.50%  | ±2.40% +254.80%  |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.708mb +0.00%  | 8.284ms +1.23%   | ±1.17% +216.55%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.458mb +0.00%  | 29.544ms +0.86%  | ±0.64% -72.63%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.268mb +0.00%  | 13.480μs +1.93%  | ±1.25% -65.97%   |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.268mb +0.00%  | 15.418μs +0.56%  | ±0.91% -65.66%   |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.297mb +0.00% | 192.120ms +3.01% | ±1.16% +14.13%   |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.05%. Comparing base (74c2a81) to head (c369340).
Report is 3 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x    #1473   +/-   ##
=======================================
  Coverage   83.04%   83.05%           
=======================================
  Files         664      665    +1     
  Lines       17858    17874   +16     
=======================================
+ Hits        14830    14845   +15     
- Misses       3028     3029    +1     
Components Coverage Δ
etl 85.79% <93.75%> (+0.01%) ⬆️
cli 86.73% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 97.36% <ø> (ø)
lib-filesystem 76.75% <ø> (ø)
lib-parquet 84.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 90.69% <ø> (ø)
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 77.10% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 88.68% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 78.04% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 80.85% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)

@norberttech norberttech merged commit 86a2b44 into flow-php:1.x Feb 12, 2025
22 checks passed
@norberttech
Copy link
Member

very nice @f-lapinski ! 🎉

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