[demo split #4449] 5/5 — Add instrumentation overhead benchmarks#4536
[demo split #4449] 5/5 — Add instrumentation overhead benchmarks#4536allspain wants to merge 1 commit intoallspain/debug-5296-e2e-scenariosfrom
Conversation
Original author: Thomas Watson <thomas.watson@datadoghq.com> (split of #4449) Co-authored-by: Thomas Watson <thomas.watson@datadoghq.com>
|
I have read the CLA Document and I hereby sign the CLA Rick Klein seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: f899723 | Docs | Datadog PR Page | Give us feedback! |
What this PR contains (5/5 — Perf benchmarks)
Performance benchmark measuring the runtime overhead of debugger
instrumentation hooks. Independent of the E2E scenarios in PR 4 in concept,
but stacked behind it for review-order linearity.
Changes
test/apps/instrumentation-overhead/— webpack test app withinstrumented vs uninstrumented function variants.
test/performance/scenarios/instrumentationOverhead.scenario.ts—benchmark scenario stress-testing 10M function calls to measure hook
overhead.
test/performance/createBenchmarkTest.ts— extended withinstrumented_no_probesandinstrumented_with_probesscenario configsand a dedicated
injectDebuggerfunction.test/performance/profiling.type.ts,server.ts— wiring.12 files, +1222 / -9.
Tests
yarn build:apps && yarn test:performance.