freitmi / exceptionperformance

performance experiments for C++ exception handling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ exception performance experiment

This project compares different ways to implement exception handling in C++, namely:

  • traditional C++ exceptions
  • std::expected
  • Boost::LEAF
  • Herbceptions, using a pure C++ approximation
  • Herbceptions, using inline assembly
  • Boost::Outcome

It considers two scenarios. The sqrt scenario perform a relatively expensive computation that might throw from time to time. This primarily stresses the unwinder. The fib scenario perform thousands of recursive calls, and thus measures the calling overhead of the different approaches.

About

performance experiments for C++ exception handling


Languages

Language:C++ 94.9%Language:Makefile 5.1%