On Fri, Apr 18, 2014 at 10:52 AM, Robert Ramey < robertmacleranramey@gmail.com> wrote:
On Friday, April 18, 2014 6:40:32 AM UTC-7, Brian Wood wrote:
niXman writes:
Hi,
The test results on your page are impressive, but there's not much info on what or how you tested. Please give some more info on that.
Looks like the YAS version uses a special mem_ostream/mem_istream classes rather than std::strstream. Since the largest part of any of these benchmarks is spent on the i/o part this would account for a huge difference.
Also it looks to me like the results you list for text serialization are off by a factor of ten.
This is common when the benchmark is compiled in debug mode. The boost serialization library has a huge amount of extra checking in debug mode which generally slows things down by a factor of 10. I don't know if that's the case here though.
He has this table: | boost | YAS | +------+---------+---------+---------+ | save | 8090 ms | 277 ms | +28000% | +------+---------+---------+---------+ | load | 8794 ms | 265 ms | +33000% | +------------------------------------+ I think the last column is off. It should be +2800% and +3300%. Personally I wouldn't use the percents and would use 28 and 33. -- Brian Ebenezer Enterprises - Heavenly code. http://webEbenezer.net