As far as raw benchmark goes, it runs faster than the go version on my machine:
# Go version. Changed test.py to 10000 gets and sets.
± $ time python test.py
python test.py 0.48s user 0.60s system 47% cpu 2.289 total
# Python epoll version. Changed test.py to 10000 gets and sets.
± $ time python test.py
python test.py 0.20s user 0.26s system 50% cpu 0.903 total
But go version is easier to read and write, compared to Python which requires the knowledge of epoll.
Standard disclaimer: Please note that this comparison is highly unscientific, and take the numbers with a grain of salt.
https://github.com/rahulkmr/Key-Value-Polyglot/blob/master/m...
As far as raw benchmark goes, it runs faster than the go version on my machine:
But go version is easier to read and write, compared to Python which requires the knowledge of epoll.Standard disclaimer: Please note that this comparison is highly unscientific, and take the numbers with a grain of salt.