jonhoo / volley

Volley is a benchmarking tool for measuring the performance of server networking stacks.
MIT License
123 stars 12 forks source link

Why is the non-blocking go implementation included? #21

Closed anacrolix closed 9 years ago

anacrolix commented 9 years ago

I can't understand the technical reason for including the non-blocking version.

jonhoo commented 9 years ago

The non-blocking version is idiomatic Go, the blocking one is not. Comparing the idiomatic server implementations from different languages is interesting, and in fact, probably more so than comparing the optimized versions. The optimized versions will, in the end, have the same threads doing the same syscalls, and will probably differ very little in terms of performance.