diff --git a/tests/Benchmarks/API/ContextPropagationBench.php b/tests/Benchmarks/API/ContextPropagationBench.php index 48ae7162b2..1926457876 100644 --- a/tests/Benchmarks/API/ContextPropagationBench.php +++ b/tests/Benchmarks/API/ContextPropagationBench.php @@ -36,6 +36,7 @@ class ContextPropagationBench * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("resetContext") + * @Warmup(1) */ public function benchExtractTraceContext128Bit() { @@ -48,6 +49,7 @@ public function benchExtractTraceContext128Bit() * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("resetContext") + * @Warmup(1) */ public function benchExtractTraceContext64Bit() { @@ -60,6 +62,7 @@ public function benchExtractTraceContext64Bit() * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("resetContext") + * @Warmup(1) */ public function benchExtractHeaders128Bit() { @@ -72,6 +75,7 @@ public function benchExtractHeaders128Bit() * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("resetContext") + * @Warmup(1) */ public function benchExtractHeaders64Bit() { @@ -84,6 +88,7 @@ public function benchExtractHeaders64Bit() * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("setUp128BitContext") + * @Warmup(1) */ public function benchInject128Bit() { @@ -96,6 +101,7 @@ public function benchInject128Bit() * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("setUp64BitContext") + * @Warmup(1) */ public function benchInject64Bit() { diff --git a/tests/Benchmarks/API/HookBench.php b/tests/Benchmarks/API/HookBench.php index 021295a000..394965fba2 100644 --- a/tests/Benchmarks/API/HookBench.php +++ b/tests/Benchmarks/API/HookBench.php @@ -11,6 +11,7 @@ class HookBench * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchWithoutHook() { @@ -25,6 +26,7 @@ public function benchWithoutHook() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchHookOverheadTraceMethod() { @@ -39,6 +41,7 @@ public function benchHookOverheadTraceMethod() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchHookOverheadTraceFunction() { @@ -53,6 +56,7 @@ public function benchHookOverheadTraceFunction() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchHookOverheadInstallHookOnMethod() { @@ -67,6 +71,7 @@ public function benchHookOverheadInstallHookOnMethod() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchHookOverheadInstallHookOnFunction() { diff --git a/tests/Benchmarks/API/MessagePackSerializationBench.php b/tests/Benchmarks/API/MessagePackSerializationBench.php index 93b2241a72..43220a80c9 100644 --- a/tests/Benchmarks/API/MessagePackSerializationBench.php +++ b/tests/Benchmarks/API/MessagePackSerializationBench.php @@ -12,6 +12,7 @@ class MessagePackSerializationBench * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @ParamProviders({"provideTraceArrays"}) + * @Warmup(1) */ public function benchMessagePackSerialization($traceArray) { diff --git a/tests/Benchmarks/API/SamplingRuleMatchingBench.php b/tests/Benchmarks/API/SamplingRuleMatchingBench.php index 14b39540e8..4ac3410f66 100644 --- a/tests/Benchmarks/API/SamplingRuleMatchingBench.php +++ b/tests/Benchmarks/API/SamplingRuleMatchingBench.php @@ -11,6 +11,7 @@ class SamplingRuleMatchingBench * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchGlobMatching1(): void { @@ -22,6 +23,7 @@ public function benchGlobMatching1(): void * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchGlobMatching2(): void { @@ -33,6 +35,7 @@ public function benchGlobMatching2(): void * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchGlobMatching3(): void { @@ -44,6 +47,7 @@ public function benchGlobMatching3(): void * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchGlobMatching4(): void { @@ -55,6 +59,7 @@ public function benchGlobMatching4(): void * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchRegexMatching1(): void { @@ -66,6 +71,7 @@ public function benchRegexMatching1(): void * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchRegexMatching2(): void { @@ -77,6 +83,7 @@ public function benchRegexMatching2(): void * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchRegexMatching3(): void { @@ -88,6 +95,7 @@ public function benchRegexMatching3(): void * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchRegexMatching4(): void { diff --git a/tests/Benchmarks/API/SpanBench.php b/tests/Benchmarks/API/SpanBench.php index ba80334fcc..dfff8d77af 100644 --- a/tests/Benchmarks/API/SpanBench.php +++ b/tests/Benchmarks/API/SpanBench.php @@ -16,6 +16,7 @@ class SpanBench * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchDatadogAPI() { @@ -44,6 +45,7 @@ public function benchDatadogAPI() * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("setUpOpenTelemetry") + * @Warmup(1) */ public function benchOpenTelemetryAPI() { @@ -72,6 +74,7 @@ public function benchOpenTelemetryAPI() * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("setUpOpenTelemetry") + * @Warmup(1) */ public function benchOpenTelemetryInteroperability() { diff --git a/tests/Benchmarks/API/TraceAnnotationsBench.php b/tests/Benchmarks/API/TraceAnnotationsBench.php index 68f57de965..d424c3916d 100644 --- a/tests/Benchmarks/API/TraceAnnotationsBench.php +++ b/tests/Benchmarks/API/TraceAnnotationsBench.php @@ -11,6 +11,7 @@ class TraceAnnotationsBench * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchTraceAnnotationOverhead() { diff --git a/tests/Benchmarks/API/TraceSerializationBench.php b/tests/Benchmarks/API/TraceSerializationBench.php index b043957527..964c76ac23 100644 --- a/tests/Benchmarks/API/TraceSerializationBench.php +++ b/tests/Benchmarks/API/TraceSerializationBench.php @@ -8,7 +8,7 @@ class TraceSerializationBench { /** * @Revs(1) - * @Iterations(10) + * @Iterations(20) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) * @BeforeMethods("setUp") diff --git a/tests/Benchmarks/Integrations/EmptyFileBench.php b/tests/Benchmarks/Integrations/EmptyFileBench.php index 69ed317b34..ba58b35cf3 100644 --- a/tests/Benchmarks/Integrations/EmptyFileBench.php +++ b/tests/Benchmarks/Integrations/EmptyFileBench.php @@ -16,6 +16,7 @@ class EmptyFileBench extends WebFrameworkTestCase * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchEmptyFileBaseline() { @@ -32,6 +33,7 @@ public function benchEmptyFileBaseline() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchEmptyFileOverhead() { diff --git a/tests/Benchmarks/Integrations/LaravelBench.php b/tests/Benchmarks/Integrations/LaravelBench.php index eb31fc3559..d411fa2181 100644 --- a/tests/Benchmarks/Integrations/LaravelBench.php +++ b/tests/Benchmarks/Integrations/LaravelBench.php @@ -16,6 +16,7 @@ class LaravelBench extends WebFrameworkTestCase * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchLaravelBaseline() { @@ -32,6 +33,7 @@ public function benchLaravelBaseline() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchLaravelOverhead() { diff --git a/tests/Benchmarks/Integrations/LogsInjectionBench.php b/tests/Benchmarks/Integrations/LogsInjectionBench.php index fd32a39465..d44eb818f0 100644 --- a/tests/Benchmarks/Integrations/LogsInjectionBench.php +++ b/tests/Benchmarks/Integrations/LogsInjectionBench.php @@ -20,6 +20,7 @@ class LogsInjectionBench * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchLogsInfoBaseline() { @@ -32,6 +33,7 @@ public function benchLogsInfoBaseline() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchLogsInfoInjection() { @@ -44,6 +46,7 @@ public function benchLogsInfoInjection() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchLogsNullBaseline() { @@ -58,6 +61,7 @@ public function benchLogsNullBaseline() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchLogsNullInjection() { diff --git a/tests/Benchmarks/Integrations/PDOBench.php b/tests/Benchmarks/Integrations/PDOBench.php index 6c8ae11a54..f16324c4ee 100644 --- a/tests/Benchmarks/Integrations/PDOBench.php +++ b/tests/Benchmarks/Integrations/PDOBench.php @@ -25,6 +25,7 @@ class PDOBench * @Iterations(15) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchPDOBaseline() { @@ -37,6 +38,7 @@ public function benchPDOBaseline() * @Iterations(15) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchPDOOverhead() { @@ -49,6 +51,7 @@ public function benchPDOOverhead() * @Iterations(15) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchPDOOverheadWithDBM() { diff --git a/tests/Benchmarks/Integrations/SymfonyBench.php b/tests/Benchmarks/Integrations/SymfonyBench.php index bf3bb6c1ee..634224cf55 100644 --- a/tests/Benchmarks/Integrations/SymfonyBench.php +++ b/tests/Benchmarks/Integrations/SymfonyBench.php @@ -16,6 +16,7 @@ class SymfonyBench extends WebFrameworkTestCase * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchSymfonyBaseline() { @@ -32,6 +33,7 @@ public function benchSymfonyBaseline() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchSymfonyOverhead() { diff --git a/tests/Benchmarks/Integrations/WordPressBench.php b/tests/Benchmarks/Integrations/WordPressBench.php index 6ec7759bea..578bc14cb1 100644 --- a/tests/Benchmarks/Integrations/WordPressBench.php +++ b/tests/Benchmarks/Integrations/WordPressBench.php @@ -16,6 +16,7 @@ class WordPressBench extends WebFrameworkTestCase * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchWordPressOverhead() { @@ -32,6 +33,7 @@ public function benchWordPressOverhead() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchEnhancedWordPressOverhead() { @@ -82,6 +84,7 @@ public function enableEnhancedWordPressTracing() * @Iterations(10) * @OutputTimeUnit("microseconds") * @RetryThreshold(10.0) + * @Warmup(1) */ public function benchWordPressBaseline() {