On Wednesday, February 8, 2017 at 12:25:35 AM UTC-8, [email protected] wrote: > > If I use GOMAXPROCS=1, the result is acceptable. >
Here are some more tests. This is scaling with number of cores, I assume the slowdown is scheduler overhead, not really select cases. 2 core 2.4ghz VM GOMAXPROCS=1 ./test 1 103.915696ms 2 175.395034ms 3 202.419482ms 4 223.797958ms 5 190.065075ms 6 227.220658ms 5 187.051455ms 4 179.631619ms 3 190.669573ms 2 142.310712ms 1 152.499649ms -------------------------------- 2 core 2.4ghz VM ./test 1 171.198489ms 2 210.830673ms 3 281.657271ms 4 323.115903ms 5 398.326505ms 6 487.572426ms 5 372.225711ms 4 329.300826ms 3 340.389165ms 2 230.250922ms 1 171.2323ms ############################### 2chip 48 core 2.2ghz GOMAXPROCS=1 ./test 1 143.303969ms 2 164.802927ms 3 190.568239ms 4 213.319021ms 5 242.178921ms 6 279.878696ms 5 238.870505ms 4 212.714209ms 3 190.477441ms 2 167.381793ms 1 139.727313ms -------------------------------- 2chip 48 core 2.2ghz GOMAXPROCS=5 ./test 1 747.404136ms 2 830.308645ms 3 755.601117ms 4 757.859521ms 5 865.421906ms 6 992.386567ms 5 854.723355ms 4 782.936463ms 3 742.610877ms 2 772.378578ms 1 788.465929ms -------------------------------- ./test 2chip 48 core 2.2ghz 1 1.790944892s 2 1.866960485s 3 1.809835384s 4 1.85111395s 5 1.965759432s 6 2.098201946s 5 1.891851858s 4 1.886732009s 3 1.849267737s 2 1.776623651s 1 1.795063859s -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
