DataDog / dd-trace-php

Datadog PHP Clients
https://docs.datadoghq.com/tracing/setup/php
Other
487 stars 152 forks source link

[DO NOT MERGE] Testing ongoing lfi branch with ongoing benchmarks branch #2844

Closed estringana closed 2 weeks ago

estringana commented 2 weeks ago

Description

I will close this PR as soon as I test the benchmarks

Reviewer checklist

codecov-commenter commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 68.57143% with 11 lines in your changes missing coverage. Please review.

Project coverage is 73.80%. Comparing base (05ae627) to head (9501bd5). Report is 17 commits behind head on master.

Files with missing lines Patch % Lines
appsec/src/extension/ddappsec.c 61.11% 4 Missing and 3 partials :warning:
appsec/src/extension/tags.c 75.00% 1 Missing and 1 partial :warning:
zend_abstract_interface/hook/hook.c 0.00% 2 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844/graphs/tree.svg?width=650&height=150&src=pr&token=eXio8H7vwF&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog)](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) ```diff @@ Coverage Diff @@ ## master #2844 +/- ## ============================================ - Coverage 73.93% 73.80% -0.13% ============================================ Files 173 65 -108 Lines 18679 8379 -10300 Branches 975 979 +4 ============================================ - Hits 13810 6184 -7626 + Misses 4332 1655 -2677 - Partials 537 540 +3 ``` | [Flag](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | Coverage Δ | | |---|---|---| | [appsec-extension](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `69.14% <72.72%> (+0.01%)` | :arrow_up: | | [tracer-extension](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `78.17% <0.00%> (-0.02%)` | :arrow_down: | | [tracer-php](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | Coverage Δ | | |---|---|---| | [appsec/src/extension/backtrace.c](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&filepath=appsec%2Fsrc%2Fextension%2Fbacktrace.c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-YXBwc2VjL3NyYy9leHRlbnNpb24vYmFja3RyYWNlLmM=) | `71.15% <100.00%> (+0.18%)` | :arrow_up: | | [appsec/src/extension/commands/request\_exec.c](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&filepath=appsec%2Fsrc%2Fextension%2Fcommands%2Frequest_exec.c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-YXBwc2VjL3NyYy9leHRlbnNpb24vY29tbWFuZHMvcmVxdWVzdF9leGVjLmM=) | `100.00% <100.00%> (ø)` | | | [appsec/src/extension/configuration.h](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&filepath=appsec%2Fsrc%2Fextension%2Fconfiguration.h&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-YXBwc2VjL3NyYy9leHRlbnNpb24vY29uZmlndXJhdGlvbi5o) | `100.00% <ø> (ø)` | | | [appsec/src/extension/user\_tracking.c](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&filepath=appsec%2Fsrc%2Fextension%2Fuser_tracking.c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-YXBwc2VjL3NyYy9leHRlbnNpb24vdXNlcl90cmFja2luZy5j) | `71.69% <100.00%> (ø)` | | | [appsec/src/extension/tags.c](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&filepath=appsec%2Fsrc%2Fextension%2Ftags.c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-YXBwc2VjL3NyYy9leHRlbnNpb24vdGFncy5j) | `79.80% <75.00%> (-0.07%)` | :arrow_down: | | [zend\_abstract\_interface/hook/hook.c](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&filepath=zend_abstract_interface%2Fhook%2Fhook.c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-emVuZF9hYnN0cmFjdF9pbnRlcmZhY2UvaG9vay9ob29rLmM=) | `54.42% <0.00%> (-0.07%)` | :arrow_down: | | [appsec/src/extension/ddappsec.c](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?src=pr&el=tree&filepath=appsec%2Fsrc%2Fextension%2Fddappsec.c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-YXBwc2VjL3NyYy9leHRlbnNpb24vZGRhcHBzZWMuYw==) | `73.61% <61.11%> (-0.48%)` | :arrow_down: | ... and [108 files with indirect coverage changes](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog). Last update [05ae627...9501bd5](https://app.codecov.io/gh/DataDog/dd-trace-php/pull/2844?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog).
pr-commenter[bot] commented 2 weeks ago

Benchmarks [ appsec ]

Benchmark execution time: 2024-09-12 09:11:28

Comparing candidate commit 9501bd574d3e3a11ae63260fa0aab4c70a86b23b in PR branch estringana/tmp-bench-lfi with baseline commit e7adb515242dc130fa967a1b1a1858a86ad8d2c8 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 178 metrics, 0 unstable metrics.

pr-commenter[bot] commented 2 weeks ago

Benchmarks [ tracer ]

Benchmark execution time: 2024-09-12 06:50:44

Comparing candidate commit 4065548180f9a4d420b9daeba4ebd2d0e32489c7 in PR branch estringana/tmp-bench-lfi with baseline commit e7adb515242dc130fa967a1b1a1858a86ad8d2c8 in branch master.

Found 3 performance improvements and 28 performance regressions! Performance is the same for 147 metrics, 0 unstable metrics.

scenario:ComposerTelemetryBench/benchTelemetryParsing

scenario:ContextPropagationBench/benchExtractHeaders128Bit

scenario:ContextPropagationBench/benchExtractHeaders64Bit

scenario:ContextPropagationBench/benchExtractHeaders64Bit-opcache

scenario:ContextPropagationBench/benchExtractTraceContext128Bit

scenario:ContextPropagationBench/benchExtractTraceContext64Bit

scenario:ContextPropagationBench/benchInject128Bit

scenario:ContextPropagationBench/benchInject64Bit

scenario:HookBench/benchHookOverheadInstallHookOnFunction

scenario:HookBench/benchHookOverheadInstallHookOnMethod

scenario:HookBench/benchHookOverheadTraceFunction

scenario:HookBench/benchHookOverheadTraceMethod

scenario:HookBench/benchWithoutHook

scenario:LogsInjectionBench/benchLogsInfoInjection-opcache

scenario:MessagePackSerializationBench/benchMessagePackSerialization

scenario:PDOBench/benchPDOOverhead-opcache

scenario:SamplingRuleMatchingBench/benchGlobMatching1

scenario:SamplingRuleMatchingBench/benchGlobMatching1-opcache

scenario:SamplingRuleMatchingBench/benchGlobMatching2

scenario:SamplingRuleMatchingBench/benchGlobMatching3

scenario:SamplingRuleMatchingBench/benchGlobMatching4

scenario:SamplingRuleMatchingBench/benchRegexMatching1

scenario:SamplingRuleMatchingBench/benchRegexMatching2

scenario:SamplingRuleMatchingBench/benchRegexMatching3

scenario:SamplingRuleMatchingBench/benchRegexMatching4

scenario:SpanBench/benchDatadogAPI

scenario:SpanBench/benchDatadogAPI-opcache

scenario:TraceAnnotationsBench/benchTraceAnnotationOverhead

scenario:TraceSerializationBench/benchSerializeTrace

scenario:WordPressBench/benchWordPressOverhead