|
Boost Users : |
Subject: Re: [Boost-users] [serialization] Runtime overhead of serialization archives
From: Georg Gast (georg_at_[hidden])
Date: 2016-09-21 12:35:06
Am 21.09.2016 um 10:14 schrieb georg_at_[hidden]:
> struct boost_xml_trait
> {
> static const char *name() { return "boost_xml_test: ev_test: "; }
>
> typedef boost::archive::xml_oarchive oarchive;
> typedef boost::archive::xml_iarchive iarchive;
> };
>
> struct boost_text_trait
> {
> static const char *name() { return "boost_text_test: ev_test: "; }
>
> typedef boost::archive::xml_oarchive oarchive;
> typedef boost::archive::xml_iarchive iarchive;
> };
>
> struct boost_binary_trait
> {
> static const char *name() { return "boost_binary_test: ev_test: "; }
>
> typedef boost::archive::xml_oarchive oarchive;
> typedef boost::archive::xml_iarchive iarchive;
> };
>
I already figured out that accidently had used in all three test xml
archives.
Now i can see bigger differences, but its still slower much than cstyle.
Here on Linux x86_64 gcc 6.1.1.
Running 5 test cases...
Sending boost_xml_test: ev_test: 100000
1.979675s wall, 1.950000s user + 0.030000s system = 1.980000s CPU (100.0%)
Receiving boost_xml_test: ev_test: 100000
3.253286s wall, 3.250000s user + 0.010000s system = 3.260000s CPU
(100.2%)
RT Counter: 100000
Sending boost_text_test: ev_test: 100000
1.667762s wall, 1.600000s user + 0.060000s system = 1.660000s CPU
(99.5%)
Receiving boost_text_test: ev_test: 100000
1.477573s wall, 1.480000s user + 0.000000s system = 1.480000s CPU
(100.2%)
RT Counter: 100000
Sending boost_binary_test: ev_test: 100000
1.303905s wall, 1.240000s user + 0.070000s system = 1.310000s CPU
(100.5%)
Receiving boost_binary_test: ev_test: 100000
1.132586s wall, 1.130000s user + 0.000000s system = 1.130000s CPU
(99.8%)
RT Counter: 100000
Sending cstyle_test: 100000
0.119564s wall, 0.070000s user + 0.050000s system = 0.120000s CPU
(100.4%)
Receiving cstyle_test: 100000
0.081580s wall, 0.080000s user + 0.000000s system = 0.080000s CPU
(98.1%)
RT Counter: 100000
Sending char_test 'c': 100000
0.125667s wall, 0.090000s user + 0.040000s system = 0.130000s CPU (103.4%)
Receiving char_test 'c': 100000
0.086719s wall, 0.080000s user + 0.010000s system = 0.090000s CPU (103.8%)
RT Counter: 9900000
*** No errors detected
-- pgp key: 0x702C5BFC Fingerprint: 267F DC06 7F96 3375 969A 9EE6 8E37 7CF4 702C 5BFC
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net