sync/channels: document more benchmark results (#6135)

pull/6137/head
Uwe Krüger 2020-08-15 11:20:51 +02:00 committed by GitHub
parent 0f0a91fc9e
commit c2b4c645a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 6 deletions

View File

@ -18,12 +18,21 @@ nobj .... number of objects to pass thru the channel
10000000 Objects transfered, results in Objects/µs
| nsend | nrec | buflen | **V (gcc -O2)** | **V (tcc)** | **Go (glang)** | **Go (gccgo -O2)** |
| :---: | :---:| :---: | :---: | :---: | :---: | :---: |
| 1 | 1 | 0 | 0.95 | 0.66 | 4.65 | 0.56 |
| 1 | 1 | 100 | 3.26 | 2.24 | 18.90 | 6.08 |
| 4 | 4 | 0 | 0.25 | 0.24 | 1.84 | 0.84 |
| 4 | 4 | 100 | 2.78 | 2.63 | 7.43 | 3.71 |
| nsend | nrec | buflen | **V (gcc -O2)** | **V (clang)** | **V (tcc)** | **Go (glang)** | **Go (gccgo -O2)** |
| :---: | :---:| :---: | :---: | :---: | :---: | :---: | :---: |
| 1 | 1 | 0 | 0.95 | 0.72 | 0.66 | 4.65 | 0.56 |
| 1 | 1 | 100 | 3.26 | 2.51 | 2.24 | 18.90 | 6.08 |
| 4 | 4 | 0 | 0.25 | 0.26 | 0.24 | 1.84 | 0.84 |
| 4 | 4 | 100 | 3.11 | 2.78 | 2.63 | 7.43 | 3.71 |
## AMD Ryzen 7 3800X, Windows 10 2004 x64
| nsend | nrec | buflen | **V (gcc -O2)** | **V (msvc /O2)** | **V (tcc)** | **Go (golang)** |
| :---: | :---:| :---: | :---: | :---: | :---: | :---: |
| 1 | 1 | 0 | 0.30 | 0.33 | 0.31 | 4.67 |
| 1 | 1 | 100 | 1.76 | 2.05 | 1.76 | 23.31 |
| 4 | 4 | 0 | 0.18 | 0.19 | 0.19 | 1.38 |
| 4 | 4 | 100 | 2.54 | 2.32 | 2.07 | 4.63 |
## Raspberry Pi 3B+, Void Linux musl 32 bit