Open main menu

CDOT Wiki β

Changes

GPU621/Go Kimchi

1,168 bytes added, 23:22, 3 August 2021
Result
===Result===
----
 
The data used in the experiment is a 4096x4096 matrix
 
{| class="wikitable"
|+ Performance difference in Go & Java
|-
! !! Go !! Java
|-
| Main thread|| 84.66 s|| 171.76 s
|-
| 1 thread|| 84.28 s || 169.51 s
|-
| 2 thread|| 37.08 s|| 73.04 s
|-
| 4 thread|| 19.2 s || 34.91 s
|-
| 8 thread|| 11.41 s|| 17.63 s
|-
| 16 thread|| 14.38 s|| 16.08 s
|}
 
[[File:Parallel Programming in Go & Java]]
 
 
{| class="wikitable"
|+ Performance difference for Java Thread
|-
! !! difference
|-
| Main Thread to 1 thread|| 2.25%
|-
| 1 thread to 2 threads|| 56.91%
|-
| 2 threads to 4 threads|| 51.90%
|-
| 4 threads to 8 threads|| 49.49
|-
| 8 threads to 16 threads|| 8.79%
|}
 
 
{| class="wikitable"
|+ Performance Difference for Go
|-
! !! difference
|-
| Main Thread to 1 thread|| 0.45%
|-
| 1 thread to 2 threads|| 127.30%
|-
| 2 threads to 4 threads|| 93.12%
|-
| 4 threads to 8 threads|| 68.27%
|-
| 8 threads to 16 threads|| -20.65%
|}
 
 
{| class="wikitable"
|+ Performance increase of Go in comparsion to Java Thread
|-
! !! difference
|-
| Main thread|| 102%
|-
| 1 thread|| 101%
|-
| 2 thread|| 96.90%
|-
| 4 thread|| 81.80%
|-
| 8 thread|| 55%
|-
| 16 thread|| 12%
|}
===Analysis===
----
58
edits