virtan/mrps — pull request #2 by andriytyurnikov (2013-01-29 04:56:44+00:00)
Title: Two dead-simple implementations in Ruby

Client compilation warning:
make
c++ -Os -march=native -mtune=native -std=c++0x -Wall -I/opt/local/include -L/opt/local/lib -lboost_thread-mt -lboost_system-mt -pthread client.cc -o client
ld: warning: directory not found for option '-L/opt/local/lib'

Client failure:
Starting tests
Chld: 0 ConnErr: 0 ExchErr: 0 ConnAvg: 0ms LatAvg: 0ms Msgs: 0
libc++abi.dylib: libc++abi.dylib: terminate called throwing an exceptionterminate called throwing an exceptionlibc++abi.dylib:
libc++abi.dylib: Abort trap: 6

boost 1.52.0 is installed from homebrew

Also output results are highly variative on my system, (localhost!):

first test ConnAvg: 625.623ms
second test ConnAvg: 0.318ms
third test ConnAvg: 757.165ms
This was true for all implementations I tested (python, perl, node, ruby).