You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "clintropolis (via GitHub)" <gi...@apache.org> on 2026/07/15 08:07:21 UTC

[PR] feat: simd division expression (druid)

clintropolis opened a new pull request, #19686:
URL: https://github.com/apache/druid/pull/19686

   ### Description
   Adds simd optimized division expression, though no long/long support since there is no simd intrinsic for it so it keeps the current path. Measurements look pretty nice:
   
   ```
   10: mixed math - 2 longs, 1 double
   SELECT SUM((long1 * long2) / double1) FROM expressions
   11: mixed math - 2 longs, 1 double, 1 float
   SELECT SUM(float3 + ((long1 * long4)/double1)) FROM expressions
   12: mixed math - 3 longs, 1 double, 1 float
   SELECT SUM(long5 - (float3 + ((long1 * long4)/double1))) FROM expressions
   ```
   
   ```
   Benchmark                        (complexCompression)  (deferExpressionDimensions)  (jsonObjectStorageEncoding)  (query)  (rowsPerSegment)  (schemaType)  (storageType)  (stringEncoding)  (useVectorApi)  (vectorize)  Mode  Cnt   Score   Error  Units
   SqlExpressionBenchmark.querySql                  NONE                 singleString                        SMILE       10           1500000      explicit           MMAP              UTF8           false        force  avgt    5  23.836 ± 1.070  ms/op
   SqlExpressionBenchmark.querySql                  NONE                 singleString                        SMILE       10           1500000      explicit           MMAP              UTF8            true        force  avgt    5  13.667 ± 1.304  ms/op
   SqlExpressionBenchmark.querySql                  NONE                 singleString                        SMILE       11           1500000      explicit           MMAP              UTF8           false        force  avgt    5  27.081 ± 0.958  ms/op
   SqlExpressionBenchmark.querySql                  NONE                 singleString                        SMILE       11           1500000      explicit           MMAP              UTF8            true        force  avgt    5  15.858 ± 0.896  ms/op
   SqlExpressionBenchmark.querySql                  NONE                 singleString                        SMILE       12           1500000      explicit           MMAP              UTF8           false        force  avgt    5  44.236 ± 1.534  ms/op
   SqlExpressionBenchmark.querySql                  NONE                 singleString                        SMILE       12           1500000      explicit           MMAP              UTF8            true        force  avgt    5  26.604 ± 0.419  ms/op
   ```


-- 
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: commits-unsubscribe@druid.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] feat: simd division expression (druid)

Posted by "clintropolis (via GitHub)" <gi...@apache.org>.
clintropolis merged PR #19686:
URL: https://github.com/apache/druid/pull/19686


-- 
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: commits-unsubscribe@druid.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org