Skip to content

test(benchmarks): Add warmup for native daemon startup - #2154

Merged
jpnurmi merged 1 commit into
masterfrom
jpnurmi/test/benchmark-warmup
Oct 2, 2026
Merged

jpnurmi merged 1 commit into
masterfrom
jpnurmi/test/benchmark-warmup

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

PR #1955 cut Linux startup time by ~60% by signaling native daemon readiness before loading libcurl and initializing the transport, and we definitely want to keep that improvement. When running benchmarks, though, we need to make sure the entire pipeline is fully up and running.

This becomes especially important when scope updates are sent over IPC to the daemon. The daemon starts reading only after transport startup, so a full IPC buffer can block sends and add misleading delay to benchmark timings. Wait for the Entering main loop log before timing these benchmarks to avoid transport startup time indirectly leaking into benchmarks and twisting the results.

PR #1955 cut Linux startup time by ~60% by signaling native daemon
readiness before loading `libcurl` and initializing the transport.

Imported from the native IPC work for #1834, where breadcrumbs,
contexts, and tags send updates to the daemon. The daemon starts
reading only after transport initialization, so a full IPC buffer can
block sends and add startup delay to benchmark timings. Wait for the
`Entering main loop` log before timing these benchmarks.
@codecov

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.44%. Comparing base (a958e52) to head (4382859).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2154   +/-   ##
=======================================
  Coverage   75.43%   75.44%           
=======================================
  Files         103      103           
  Lines       28078    28078           
  Branches     5127     5127           
=======================================
+ Hits        21182    21184    +2     
+ Misses       5564     5559    -5     
- Partials     1332     1335    +3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
jpnurmi requested a review from mujacica October 1, 2026 16:10
@jpnurmi
jpnurmi added this pull request to stack #2156 October 2, 2026 06:16
@jpnurmi
jpnurmi requested a review from limbonaut October 2, 2026 06:47
@jpnurmi
jpnurmi merged commit 9e81356 into master Oct 2, 2026
74 of 75 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/test/benchmark-warmup branch October 2, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants