LuciferYang commented on pull request #35622:
URL: https://github.com/apache/spark/pull/35622#issuecomment-1049461647


   The result as follows:
   ```
   Running benchmark: ToByteArray with 1024 
     Running case: toByteArray
     Stopped after 4491 iterations, 2000 ms
     Running case: toByteArray Use Guava
     Stopped after 148518 iterations, 2000 ms
   
   OpenJDK 64-Bit Server VM 1.8.0_312-b07 on Mac OS X 11.4
   Apple M1
   ToByteArray with 1024 :                   Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
   
------------------------------------------------------------------------------------------------------------------------
   toByteArray                                           0              0       
    0          0.0      424250.0       1.0X
   toByteArray Use Guava                                 0              0       
    0          0.1       11416.0      37.2X
   
   Running benchmark: ToByteArray with 1048576 
     Running case: toByteArray
     Stopped after 5 iterations, 2182 ms
     Running case: toByteArray Use Guava
     Stopped after 6650 iterations, 2000 ms
   
   OpenJDK 64-Bit Server VM 1.8.0_312-b07 on Mac OS X 11.4
   Apple M1
   ToByteArray with 1048576 :                Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
   
------------------------------------------------------------------------------------------------------------------------
   toByteArray                                         430            436       
   10          0.0   429517208.0       1.0X
   toByteArray Use Guava                                 0              0       
    0          0.0      273167.0    1572.4X
   
   Running benchmark: ToByteArray with 10485760 
     Running case: toByteArray
     Stopped after 2 iterations, 8609 ms
     Running case: toByteArray Use Guava
     Stopped after 542 iterations, 2001 ms
   
   OpenJDK 64-Bit Server VM 1.8.0_312-b07 on Mac OS X 11.4
   Apple M1
   ToByteArray with 10485760 :               Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
   
------------------------------------------------------------------------------------------------------------------------
   toByteArray                                        4300           4305       
    7          0.0  4299691500.0       1.0X
   toByteArray Use Guava                                 3              4       
    1          0.0     3324875.0    1293.2X
   
   Running benchmark: ToByteArray with 104857600 
     Running case: toByteArray
     Stopped after 2 iterations, 86419 ms
     Running case: toByteArray Use Guava
     Stopped after 53 iterations, 2007 ms
   
   OpenJDK 64-Bit Server VM 1.8.0_312-b07 on Mac OS X 11.4
   Apple M1
   ToByteArray with 104857600 :              Best Time(ms)   Avg Time(ms)   
Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
   
------------------------------------------------------------------------------------------------------------------------
   toByteArray                                       43197          43210       
   18          0.0 43197043042.0       1.0X
   toByteArray Use Guava                                33             38       
    6          0.0    33091375.0    1305.4X
   ```


-- 
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