[Development] What kind of airplane we want to build?

Cristian Adam cristian.adam at gmail.com
Fri Jan 22 10:55:34 CET 2016


On Fri, Jan 22, 2016 at 11:59 AM, Marc Mutz <marc.mutz at kdab.com> wrote:

>
> I'm not sure about what outcome to expect, and I don't remember any numbers
> posted by anyone else, either.
>
>
>
>From the David Stone's Writing Robust Code
<https://meetingcpp.com/tl_files/2014/talks/robust_code.pdf> page 34:

Performance of exceptions when not thrown
● Tested on gcc 4.9.2
● Numbers relative to ignoring errors
● With no destructors
    – 12.8% overhead for exceptions
    – 32.8% overhead for return codes
● With destructors
    – 6.3% overhead for exceptions
    – 18.7% overhead for return codes

And page 35:

Performance of exceptions when thrown
● Tested on gcc 4.9.2
● Numbers relative to ignoring errors
● With no destructors
    – 900% overhead for exceptions
● With destructors
    – 750% overhead

Cheers,
Cristian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160122/7b7898e5/attachment.html>


More information about the Development mailing list