Two dead-simple implementations in Ruby #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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).