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

Kirill Tkalenko commented on IGNITE-16451:
------------------------------------------

Test results are on my laptop:
{noformat}
Benchmark                                     Mode     Cnt        Score        
Error   Units
ArrayUtilsSelfTestBench.removeLongArr        thrpt      10  2548787,955 ±  
46298,368  ops/ms
ArrayUtilsSelfTestBench.removeLongArrNew     thrpt      10  2622077,988 ±  
38953,430  ops/ms
ArrayUtilsSelfTestBench.removeObjectArr      thrpt      10    28247,399 ±   
1100,879  ops/ms
ArrayUtilsSelfTestBench.removeObjectArrNew   thrpt      10  2520448,097 ± 
192707,083  ops/ms
ArrayUtilsSelfTestBench.removeLongArr         avgt      10       ≈ 10⁻⁶         
       ms/op
ArrayUtilsSelfTestBench.removeLongArrNew      avgt      10       ≈ 10⁻⁶         
       ms/op
ArrayUtilsSelfTestBench.removeObjectArr       avgt      10       ≈ 10⁻⁴         
       ms/op
ArrayUtilsSelfTestBench.removeObjectArrNew    avgt      10       ≈ 10⁻⁶         
       ms/op
ArrayUtilsSelfTestBench.removeLongArr       sample  390485       ≈ 10⁻⁵         
       ms/op
ArrayUtilsSelfTestBench.removeLongNewArr    sample  246693       ≈ 10⁻⁵         
       ms/op
ArrayUtilsSelfTestBench.removeObjectArr     sample  248217       ≈ 10⁻⁴         
       ms/op
ArrayUtilsSelfTestBench.removeObjectArrNew  sample  391491       ≈ 10⁻⁵         
       ms/op
ArrayUtilsSelfTestBench.removeLongArr           ss      10        0,002 ±      
0,001   ms/op
ArrayUtilsSelfTestBench.removeLongArrNew        ss      10        0,003 ±      
0,001   ms/op
ArrayUtilsSelfTestBench.removeObjectArr         ss      10        0,004 ±      
0,001   ms/op
ArrayUtilsSelfTestBench.removeObjectArrNew      ss      10        0,004 ±      
0,001   ms/op
{noformat}


> Try to optimize ArrayUtils#remove
> ---------------------------------
>
>                 Key: IGNITE-16451
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16451
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Kirill Tkalenko
>            Assignee: Kirill Tkalenko
>            Priority: Minor
>              Labels: ignite-3, tech-debt
>             Fix For: 3.0.0-alpha5
>
>
> We can try to optimize and benchmark *ArrayUtils#remove(T[], int)* and 
> *ArrayUtils#remove(long[], int)*, for example using *Arrays#copyOf* and 
> *System#arraycopy*.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to