
On Monday, March 28, 2011 05:25:13 AM Jeremy Maitin-Shepard wrote:
On 03/26/2011 03:19 PM, Lorenzo Caminiti wrote:
Hello all,
I am updating Boost.Local docs and I could use a some help in getting the Alternatives section right
http://svn.boost.org/svn/boost/sandbox/local/libs/local/doc/html/boost_local...
You might include compile time and run time benchmarks, information about error message quality, and polymorphic capabilities. Additionally, you might note that with C++0x local classes can be used with templates.
Just did a quick test ... code is attached ... $ time g++ -O3 -I. -Wall -Wextra add.cpp -o add real 0m0.657s user 0m0.583s sys 0m0.067s $ time ./add 1e+12 real 0m35.641s user 0m35.618s sys 0m0.017s $ time g++ -O3 -I. -Wall -Wextra add_boost_phoenix.cpp -o add_phoenix real 0m3.385s user 0m3.160s sys 0m0.217s thomas@sunshine ~/programming/local $ time ./add_phoenix 1e+12 real 0m6.648s user 0m6.643s sys 0m0.007s