4 ms·
I think this is a prime example of why micro-benchmarks are hard to get right, and easy to get wrong. In particular, there are two concerning things here: "ru
by theamk 6y ago
I think this is a prime example of why micro-benchmarks are hard to get right, and easy to get wrong.
In particular, there are two concerning things here:
"rust" and "go" have pretty different memory performance characteristics -- one has GC and heavy runtime and other does not! It seems like this is "go vs rust" comparison, not "goroutines vs thread". For fairness, you want the same language.
Another point is that the examples are really trivial, and don't really exercise the stack. Would the thread stack shrink back or grow too fast? What about goroutine stack?