Neverlord/libcppa — pull request #22 by mavam (2012-05-27 19:42:59+00:00)
Title: Topic/libprocess

This benchmark implements the token-passing mixed case benchmark for the
libprocess actor library. I still haven't figured out the autotools fu to integrate it nicely with the build process. So far, I built the benchmark as follows:

g++ -std=c++11 -I /path/to/mesos/third_party/libprocess/include -L /opt/local/lib \
/path/to/mesos/build/.libs/libprocess.a /path/to/mesos/build/third_party/libev-3.8/.libs/libev.a \
mixed_case_libprocess.cpp -lglog -lboost_thread-mt

Since `libprocess` does not ship stand alone, it needs to build separately as follows:

git clone git://git.apache.org/mesos.git
mkdir mesos/build && cd mesos/build
../third_party/libprocess/configure
make

Please let me know if you can reproduce the procedure. On my Core 2 Duo 3.06 GHz Macbook Pro with 4 GB RAM, the libprocess benchmark runs slower than the event-based (e) libcppa counterpart, yet faster than the stack-based (s) version:

libprocess: 426.00s user 98.38s system 174% cpu 5:00.57 total
libcppa (e): 161.59s user 0.57s system 183% cpu 1:28.14 total
libcppa (s): 302.38s user 554.17s system 176% cpu 8:05.86 total