News for hackers. Stuff that matters.
Re:In-memory key-value store in C, Go and Python by irahul on Wednesday March 21, 2012 @05:44AM (#3733697)
I hand coded an epoll implementation for Python.

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:

    # 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.

Re:In-memory key-value store in C, Go and Python by jlouis on Wednesday March 21, 2012 @06:16AM (#3733743)
I wonder how a barebones Erlang-implementation will perform on this. It doesn't look too hard to write :)