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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to