On GCE n1-standard-16 with 16 vCPUs, all in M/s and M/(threads*s):
Compiled with g++ -O3:
|Nr |Guardian |Ungeschuet|Mutex |Spinlock |Protector
--------------------------------------------------------------
| 1 | 34.0 34.06| 2259 2259|60.42 60.42|102.1 102.1| 84.3 84.35
| 2 | 64.6 32.31| 4339 2169| 9.33 4.66| 97.5 48.7|160.1 80.05
| 3 | 92.6 30.86| 6162 2054| 7.89 2.63| 93.5 31.1|234.3 78.12
| 4 |120.5 30.13| 8021 2005|13.96 3.49| 89.9 22.4|300.4 75.12
| 5 |146.3 29.26| 9814 1962|11.43 2.28| 88.3 17.6|367.4 73.49
| 6 |168.6 28.10|11302 1883| 9.23 1.53| 83.9 13.9|431.2 71.87
| 7 |208.3 29.76|12790 1827| 8.43 1.20| 81.0 11.5|498.5 71.21
| 8 |220.1 27.51|14075 1759| 8.39 1.04| 81.2 10.1|554.7 69.34
| 9 |258.1 28.68|14040 1560| 8.24 0.91| 81.0 9.0|542.1 60.23
|10 |282.4 28.24|14078 1407| 8.36 0.83| 81.9 8.1|540.9 54.09
|11 |301.0 27.37|14029 1275| 8.10 0.73| 81.0 7.3|524.4 47.67
|12 |321.2 26.76|14060 1171| 7.99 0.66| 82.2 6.8|518.4 43.20
|13 |345.0 26.54|14031 1079| 7.79 0.59| 82.3 6.3|510.9 39.30
|14 |366.7 26.19|14086 1006| 7.63 0.54| 82.8 5.9|502.5 35.89
|15 |385.9 25.73|14092 939| 7.54 0.50| 83.4 5.5|498.5 33.23
|16 |408.6 25.54|14276 892| 7.53 0.47| 82.9 5.1|491.9 30.74
|20 |408.0 20.40|14317 715| 7.98 0.39| 84.5 4.2|488.9 24.44
|24 |402.6 16.77|14196 591| 8.29 0.34| 84.0 3.5|525.3 21.88
|28 |398.6 14.23|14235 508| 8.43 0.30| 83.4 2.9|501.8 17.92
|32 |389.9 12.18|14123 441| 8.53 0.26| 83.4 2.6|528.9 16.52
|48 |385.2 8.02|14202 295| 8.62 0.17| 81.0 1.6|488.4 10.17
|64 |375.1 5.86|14196 221| 8.91 0.13| 79.2 1.2|508.3 7.94
Compiled with clang++ -O3:
|Nr |Guardian |Ungeschuet|Mutex |Spinlock |Protector
-----------------------------------------------------------
| 1 | 46.2 46.2| 2066 2066|58.07 58.07|92.9 92.9| 65.0 65.0
| 2 |123.9 61.9| 3933 1966| 8.50 4.25|88.6 44.3|124.0 62.0
| 3 |198.2 66.0| 5614 1871| 7.35 2.45|85.5 28.5|178.8 59.6
| 4 |267.4 66.8| 7287 1821|13.63 3.40|82.6 20.6|226.4 56.6
| 5 |336.1 67.2| 8912 1782|11.97 2.39|79.9 15.9|280.9 56.1
| 6 |392.9 65.4|10223 1703| 8.77 1.46|76.8 12.8|322.1 53.6
| 7 |449.9 64.2|11676 1668| 7.10 1.01|85.4 12.2|365.9 52.2
| 8 |504.1 63.0|12760 1595| 6.76 0.84|84.6 10.5|394.0 49.2
| 9 |501.3 55.7|12887 1431| 6.54 0.72|85.5 9.5|406.7 45.1
|10 |511.5 51.1|12955 1295| 6.45 0.64|84.9 8.4|416.4 41.6
|11 |489.8 44.5|12790 1162| 6.29 0.57|82.7 7.5|406.8 36.9
|12 |491.9 40.9|12891 1074| 6.15 0.51|83.3 6.9|420.5 35.0
|13 |490.5 37.7|12964 997| 6.01 0.46|83.4 6.4|425.5 32.7
|14 |484.2 34.5|13056 932| 5.86 0.41|83.0 5.9|428.4 30.6
|15 |483.2 32.2|13048 869| 5.75 0.38|83.0 5.5|433.4 28.8
|16 |481.5 30.0|13251 828| 5.72 0.35|82.6 5.1|434.8 27.1
|20 |482.1 24.1|13250 662| 6.20 0.31|83.5 4.1|437.1 21.8
|24 |476.5 19.8|13256 552| 6.65 0.27|83.0 3.4|428.2 17.8
|28 |524.4 18.7|13262 473| 6.66 0.23|82.4 2.9|445.2 15.9
|32 |515.6 16.1|13152 411| 6.86 0.21|82.0 2.5|464.5 14.5
|48 |507.7 10.5|13178 274| 7.04 0.14|79.5 1.6|435.1 9.0
|64 |493.4 7.7|13236 206| 7.15 0.11|78.2 1.2|444.9 6.9
On my computer with 4 vCPUs, all in M/s and M/(threads*s):
Compiled with g++ -O3:
|Nr |Guardian |Ungeschue|Mutex | Spinlock |Protector
---------------------------------------------------------------
| 1 | 28.4 28.4|1786 1786|41.9 41.93|106.68 106.68| 67.93 67.93
| 2 | 52.3 26.1|3615 1807|10.1 5.06| 96.52 48.26|132.56 66.28
| 3 | 74.3 24.7|3650 1216| 9.1 3.04| 93.97 31.32|125.26 41.75
| 4 | 96.1 24.0|3672 918|10.5 2.63| 91.84 22.96|126.91 31.73
| 5 | 96.5 19.3|3681 736|10.4 2.08| 89.56 17.91|121.05 24.20
| 6 | 96.6 16.1|3646 607|10.5 1.75| 88.46 14.74|128.69 21.44
| 7 |102.7 14.6|3645 520|10.5 1.50| 87.58 12.51|125.48 17.92
| 8 |105.7 13.2|3668 458|10.5 1.31| 87.00 10.87|126.52 15.81
Compiled with clang++ -O3:
|Nr |Guardian |Ungesch. |Mutex |Spinlock |Protector
--------------------------------------------------------------
| 1 | 36.88 36.88|1743 1743|38.72 38.72|99.53 99.53| 47.1 47.1
| 2 |100.98 50.49|2952 1476| 7.72 3.86|88.97 44.48| 88.4 44.2
| 3 |119.23 39.74|3391 1130| 8.83 2.94|87.63 29.21| 95.9 31.9
| 4 |126.94 31.73|3422 855| 9.54 2.38|85.54 21.38|107.9 26.9
| 5 |122.28 24.45|3452 690| 9.38 1.87|83.46 16.69|100.9 20.1
| 6 |116.19 19.36|3441 573| 9.37 1.56|82.53 13.75|118.2 19.7
| 7 |121.22 17.31|3430 490| 9.37 1.33|81.88 11.69|114.9 16.4
| 8 |122.36 15.29|3432 429| 9.37 1.17|81.47 10.18|113.3 14.1
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8