Skip to content

Native: optimize backend startup on Linux #1852

Closed

Description

@jpnurmi

crashpad vs. native startup should be comparable

Local

$ pytest -v tests/benchmark.py::test_benchmark_backend -k "crashpad or native"
...
tests/benchmark.py::test_benchmark_backend[crashpad] PASSED
Min 1.465ms, Max 1.637ms, Mean 1.536ms, StdDev 0.079ms, Median 1.506ms, CPU 0.357ms
tests/benchmark.py::test_benchmark_backend[native] PASSED
Min 5.710ms, Max 7.042ms, Mean 6.445ms, StdDev 0.617ms, Median 6.579ms, CPU 2.677ms

CI

Note: the Y-axis is logarithmic

Image

https://getsentry.github.io/sentry-native/

Activity

  1. linear-code commented on Jul 9, 2026

    @linear-code
  2. jpnurmi commented on Jul 10, 2026

    @jpnurmi
    CollaboratorAuthor

    Worst offenders (~9ms startup):

    • zeroing 8MB of shared memory, dominated by modules (3ms, ~30%)
    • loading curl and its deps (LD_DEBUG=statistics) before sentry-daemon main() (4ms, ~40%)
  3. self-assigned this
    on Aug 4, 2026
  4. jpnurmi commented on Aug 18, 2026

    @jpnurmi
    CollaboratorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions