[ 
https://issues.apache.org/jira/browse/IGNITE-25284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949636#comment-17949636
 ] 

Ivan Bessonov edited comment on IGNITE-25284 at 5/6/25 6:45 AM:
----------------------------------------------------------------

Benchmark results. Underwhelming, but it got better.
h4. main, Java 11:
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  106.766 ± 12.305  ops/us 
{code}
h4. main, Java 17:
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  131.503 ± 10.664  ops/us 
{code}
h4. main, Java 21:
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  126.148 ± 15.574  ops/us 
{code}
h4. branch, Java 11:
{code:java}
Benchmark                                   Mode  Cnt    Score   Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  135.922 ± 0.660  
ops/us{code}
h4. branch, Java 17:
{code:java}
Benchmark                                   Mode  Cnt    Score   Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  161.761 ± 4.122  ops/us 
{code}
h4. branch, Java 21:
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  167.184 ± 10.658  ops/us 
{code}


was (Author: ibessonov):
Benchmark results. Underwhelming, but it got better.
h4. main, Java 11:

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  106.766 ± 12.305  ops/us 
{code}
h4. main, Java 17:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  131.503 ± 10.664  ops/us 
{code}
h4. main, Java 21:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  126.148 ± 15.574  ops/us 
{code}
h4. branch, Java 11:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score   Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  135.922 ± 0.660  
ops/us{code}
h4. branch, Java 17:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score   Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  161.761 ± 4.122  ops/us 
{code}
h4. branch, Java 21:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  167.184 ± 10.658  ops/us 
{code}
 

 

> GridUnsafe#wrapPointer should always use explicit method handles
> ----------------------------------------------------------------
>
>                 Key: IGNITE-25284
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25284
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Ivan Bessonov
>            Assignee: Ivan Bessonov
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> If method handle is static and final, JIT will be able to optimize it. 
> Current code doesn't allow for such optimizations, making "wrapPointer" slow



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to