You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2023/08/08 08:43:35 UTC

[GitHub] [arrow] pitrou commented on pull request #37032: GH-36892: [C++] Fix performance regressions in `FieldPath::Get`

pitrou commented on PR #37032:
URL: https://github.com/apache/arrow/pull/37032#issuecomment-1669183256

   Out of curiosity I ran these benchmarks against 12.0.1:
   
   **12.0.1**
   
   ```
   -----------------------------------------------------------------------------------------------
   Benchmark                                     Time             CPU   Iterations UserCounters...
   -----------------------------------------------------------------------------------------------
   FieldPathGetFromWideArray                474829 ns       474364 ns         1487 items_per_second=21.0809M/s
   FieldPathGetFromWideArrayData            135436 ns       135304 ns         5174 items_per_second=73.9079M/s
   FieldPathGetFromWideBatch                452217 ns       451773 ns         1553 items_per_second=22.135M/s
   FieldPathGetFromWideTable            3261966454 ns   3259233772 ns            1 items_per_second=3.06821k/s
   FieldPathGetFromWideChunkedArray/2   9.0042e+10 ns   8.9960e+10 ns            1 items_per_second=111.16/s
   FieldPathGetFromWideChunkedArray/8   2.3128e+10 ns   2.3124e+10 ns            1 items_per_second=432.451/s
   FieldPathGetFromWideChunkedArray/32  1.1759e+10 ns   1.1757e+10 ns            1 items_per_second=850.574/s
   FieldPathGetFromWideChunkedArray/100 8947862056 ns   8946355791 ns            1 items_per_second=1.11777k/s
   ```
   
   ** After this PR **
   ```
   -----------------------------------------------------------------------------------------------
   Benchmark                                     Time             CPU   Iterations UserCounters...
   -----------------------------------------------------------------------------------------------
   FieldPathGetFromWideArray                626352 ns       626257 ns         1109 items_per_second=15.9679M/s
   FieldPathGetFromWideArrayData            397684 ns       397611 ns         1760 items_per_second=25.1502M/s
   FieldPathGetFromWideBatch                703693 ns       703582 ns          988 items_per_second=14.213M/s
   FieldPathGetFromWideTable                394278 ns       394211 ns         1762 items_per_second=25.3671M/s
   FieldPathGetFromWideChunkedArray/2     35398792 ns     35372736 ns           17 items_per_second=282.704k/s
   FieldPathGetFromWideChunkedArray/8      7108294 ns      7101924 ns           84 items_per_second=1.40807M/s
   FieldPathGetFromWideChunkedArray/32     2459666 ns      2458740 ns          280 items_per_second=4.06712M/s
   FieldPathGetFromWideChunkedArray/100    1361175 ns      1360980 ns          513 items_per_second=7.34765M/s
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org