|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-07-06 10:17:48
At 09:00 AM 7/6/2001, Samuel Krempp wrote:
>Results were :
>
>. compiled with optimisation (-O) :
>printf time : 0m 0.732s
>ostream time : 0m 1.659s, = 2.267 * printf
>
>stored format time : 0m 3.541s, = 2.135 * stream
>format time : 0m 6.434s, = 3.879 * stream
>func_format time : 0m 9.998s, = 6.028 * stream
>
>. compiled with debug (-g) :
>printf time : 0m 0.742s
>ostream time : 0m 2.399s, = 3.231 * printf
>
>stored format time : 0m 9.653s, = 4.024 * stream
>format time : 0m19.305s, = 8.049 * stream
>func_format time : 0m26.525s, = 11.059 * stream
>
>How do those results sound ? good enough, or not quite ?
IIRC, past relative I/O benchmarks similar to printf time vs ostream time
have shown dramatically different results depending on the compiler,
platform, and standard library implementation.
If that is still correct (it has been a while since I've seen any
comparisons), you might want to ask Boost members to help you run the tests
for several compilers, platforms, and standard libraries.
Unless the test environment you ran under was totally atypical, I think the
numbers you report are good enough.
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk