From c2b4c645a1f216cf57077ffd0305082f580addee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kr=C3=BCger?= <45282134+UweKrueger@users.noreply.github.com> Date: Sat, 15 Aug 2020 11:20:51 +0200 Subject: [PATCH] sync/channels: document more benchmark results (#6135) --- vlib/sync/bench/results.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/vlib/sync/bench/results.md b/vlib/sync/bench/results.md index 3298861c06..4b32bd50e5 100644 --- a/vlib/sync/bench/results.md +++ b/vlib/sync/bench/results.md @@ -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