[ 
https://issues.apache.org/jira/browse/SPARK-49491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuming Wang updated SPARK-49491:
--------------------------------
    Description: 
scala 2.13.8:

{noformat}
OpenJDK 64-Bit Server VM 1.8.0_382-b05 on Mac OS X 14.5
Apple M2 Max
Benchmark Map:                            Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
HashMap                                            1121           1126          
 3          0.0      280264.2       1.0X
AnyRefMap                                          1590           1609          
29          0.0      397386.4       0.7X
{noformat}

scala 2.12.18:
{noformat}
OpenJDK 64-Bit Server VM 1.8.0_382-b05 on Mac OS X 14.5
Apple M2 Max
Benchmark Map:                            Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
HashMap                                            1679           1689          
11          0.0      419759.2       1.0X
AnyRefMap                                          1585           1592          
 8          0.0      396357.1       1.1X
{noformat}

More details:
https://github.com/scala/bug/issues/13029#issuecomment-2325489902

  was:
JDK 1.8:

{noformat}
OpenJDK 64-Bit Server VM 1.8.0_382-b05 on Mac OS X 14.5
Apple M2 Max
Benchmark Map:                            Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
HashMap                                            2028           2063          
98          0.0      506933.0       1.0X
AnyRefMap                                          1901           1936          
19          0.0      475346.3       1.1X
{noformat}

Java 17:
{noformat}
OpenJDK 64-Bit Server VM 17.0.7+7-LTS on Mac OS X 14.5
Apple M2 Max
Benchmark Map:                            Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
HashMap                                            1575           1615          
47          0.0      393832.3       1.0X
AnyRefMap                                          1495           1502          
 5          0.0      373664.5       1.1X
{noformat}



> Replace AnyRefMap with HashMap
> ------------------------------
>
>                 Key: SPARK-49491
>                 URL: https://issues.apache.org/jira/browse/SPARK-49491
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> scala 2.13.8:
> {noformat}
> OpenJDK 64-Bit Server VM 1.8.0_382-b05 on Mac OS X 14.5
> Apple M2 Max
> Benchmark Map:                            Best Time(ms)   Avg Time(ms)   
> Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
> ------------------------------------------------------------------------------------------------------------------------
> HashMap                                            1121           1126        
>    3          0.0      280264.2       1.0X
> AnyRefMap                                          1590           1609        
>   29          0.0      397386.4       0.7X
> {noformat}
> scala 2.12.18:
> {noformat}
> OpenJDK 64-Bit Server VM 1.8.0_382-b05 on Mac OS X 14.5
> Apple M2 Max
> Benchmark Map:                            Best Time(ms)   Avg Time(ms)   
> Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
> ------------------------------------------------------------------------------------------------------------------------
> HashMap                                            1679           1689        
>   11          0.0      419759.2       1.0X
> AnyRefMap                                          1585           1592        
>    8          0.0      396357.1       1.1X
> {noformat}
> More details:
> https://github.com/scala/bug/issues/13029#issuecomment-2325489902



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

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

Reply via email to