Sentry doesn't impact a web site's performance.
If you look at the configuration options for when you initialize Sentry in your code, you'll see there's nothing regarding minimizing its impact on your app's performance. This is because our team of SDK engineers already developed Sentry with this in mind.
Sentry is a listener/handler for errors that asynchronously sends out the error/event to Sentry.io. This is non-blocking. The error/event only goes out if this is an error
Global handlers have almost no impact as well, as they are native APIs provided by the browsers - https://github.com/getsentry/sentry-javascript/issues/1887#issuecomment-464102437"