diff --git a/benchmarks/profiler_allocation.rb b/benchmarks/profiler_allocation.rb index 8ce9de54c7c..87d9430d288 100644 --- a/benchmarks/profiler_allocation.rb +++ b/benchmarks/profiler_allocation.rb @@ -19,7 +19,7 @@ def export(flush) class ProfilerAllocationBenchmark def run_benchmark Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) @@ -41,7 +41,7 @@ def run_benchmark 3.times { GC.start } Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) diff --git a/benchmarks/profiler_gc.rb b/benchmarks/profiler_gc.rb index 8fa1ee615a9..673795c397e 100644 --- a/benchmarks/profiler_gc.rb +++ b/benchmarks/profiler_gc.rb @@ -28,7 +28,7 @@ def create_profiler def run_benchmark Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) @@ -46,7 +46,7 @@ def run_benchmark end Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) @@ -72,7 +72,7 @@ def run_benchmark end Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) @@ -91,7 +91,7 @@ def run_benchmark Datadog::Profiling.wait_until_running Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) @@ -105,7 +105,7 @@ def run_benchmark Datadog.configure { |c| c.profiling.enabled = false } Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) @@ -124,7 +124,7 @@ def run_benchmark Datadog::Profiling.wait_until_running Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) diff --git a/benchmarks/profiler_hold_resume_interruptions.rb b/benchmarks/profiler_hold_resume_interruptions.rb index b47bf7feda5..ca11ed8919b 100644 --- a/benchmarks/profiler_hold_resume_interruptions.rb +++ b/benchmarks/profiler_hold_resume_interruptions.rb @@ -16,7 +16,7 @@ def create_profiler def run_benchmark Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) diff --git a/benchmarks/profiler_sample_loop_v2.rb b/benchmarks/profiler_sample_loop_v2.rb index b5499aa55a1..62671667928 100644 --- a/benchmarks/profiler_sample_loop_v2.rb +++ b/benchmarks/profiler_sample_loop_v2.rb @@ -40,7 +40,7 @@ def thread_with_very_deep_stack(depth: 500) def run_benchmark Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) diff --git a/benchmarks/profiler_sample_serialize.rb b/benchmarks/profiler_sample_serialize.rb index 1b02f1de623..169e20970f6 100644 --- a/benchmarks/profiler_sample_serialize.rb +++ b/benchmarks/profiler_sample_serialize.rb @@ -34,7 +34,7 @@ def create_profiler def run_benchmark Benchmark.ips do |x| - benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } + benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 30, warmup: 2 } x.config( **benchmark_time, ) diff --git a/benchmarks/tracing_trace.rb b/benchmarks/tracing_trace.rb index 35d1ec8bfae..e47beca6f3f 100644 --- a/benchmarks/tracing_trace.rb +++ b/benchmarks/tracing_trace.rb @@ -24,7 +24,7 @@ def open # benchmarking platform to calculate helpful aggregate stats. Because benchmark-ips tries to run one iteration # per 100ms, this means we'll have around 120 samples (give or take a small margin of error). # @param [Integer] warmup in seconds. The default is 2 seconds. - def benchmark_time(time: 12, warmup: 2) + def benchmark_time(time: 30, warmup: 2) VALIDATE_BENCHMARK_MODE ? { time: 0.001, warmup: 0 } : { time: time, warmup: warmup } end