arne-bdt commented on PR #3324:
URL: https://github.com/apache/jena/pull/3324#issuecomment-3096087647

   > I see benchmarks in this PR so have you generated some numbers that show 
the improvement?
   
   The numbers depend on how many unbound values there are.  There is no 
x-percent performance gain or so.
   
   I pushed it to the extremes, where the first four expressions are unbound 
and the fifth is bound. Then executing this a million times:
   ```
   Benchmark                                  Mode  Cnt  Score   Error  Units
   TestCoalesce.benchmarkCoalesceJena550      avgt   15  0,196 ± 0,008   s/op
   TestCoalesce.benchmarkCoalesceJenaCurrent  avgt   15  0,027 ± 0,004   s/op
   ```
   
   If there are no unbound values, it might even be a tiny bit slower because 
the binding might be validated twice (depending on runtime-optimization). Same 
test with first expression bound and ten million executions:
   ```
   Benchmark                                  Mode  Cnt  Score   Error  Units
   TestCoalesce.benchmarkCoalesceJena550      avgt   15  0,194 ± 0,005   s/op
   TestCoalesce.benchmarkCoalesceJenaCurrent  avgt   15  0,196 ± 0,005   s/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: pr-unsubscr...@jena.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@jena.apache.org
For additional commands, e-mail: pr-h...@jena.apache.org

Reply via email to