From: Christophe Meessen (christophe_at_[hidden])
Date: 2003-10-18 11:27:00
The previous performance tests on linux where done using a program
compiled with g++ -O2
I just tried with -O5 and got better results for linux.
Note that Win32 test is on 800MHz computer and Linux test on 1200MHz
computer. Sorry I don't have a dual boot machine around.
1° native calls: 65 sec (Win32), 104 sec (Linux)
2° using scoped_lock call: 185 sec (Win32), 153 sec (Linux)
3° using synchronize call: 68 sec (Win32), 105 sec (Linux)
The difference with scoped_lock is much more visible now.
The difference between linux and win32 can come from the dynamic
libraries. On win32 everything is static on linux pthread and
boost_thread are dynamic.
-- Bien cordialement, Ch. Meessen
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk