From 17e932b22c14d55df30e972d848ddb42c85ede86 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Fri, 12 Jul 2024 03:40:44 -0400 Subject: [PATCH] di bench --- benchmarks/di_instrument_method.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/benchmarks/di_instrument_method.rb b/benchmarks/di_instrument_method.rb index c88cc8dfa29..7eff0175823 100644 --- a/benchmarks/di_instrument_method.rb +++ b/benchmarks/di_instrument_method.rb @@ -34,7 +34,7 @@ def run_benchmark benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } x.config( **benchmark_time, - suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'profiler_gc') + suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'di_instrument_method') ) # The idea of this benchmark is to test the overall cost of the Ruby VM calling these methods on every GC. @@ -57,7 +57,7 @@ def run_benchmark benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } x.config( **benchmark_time, - suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'profiler_gc') + suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'di_instrument_method') ) x.report('method instrumentation') do @@ -86,7 +86,7 @@ def run_benchmark benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } x.config( **benchmark_time, - suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'profiler_gc') + suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'di_instrument_method') ) x.report('line instrumentation') do @@ -127,7 +127,7 @@ def run_benchmark benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } x.config( **benchmark_time, - suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'profiler_gc') + suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'di_instrument_method') ) x.report('line instrumentation - targeted') do @@ -156,7 +156,7 @@ def run_benchmark benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } x.config( **benchmark_time, - suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'profiler_gc') + suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'di_instrument_method') ) # This benchmark should produce identical results to the @@ -177,7 +177,7 @@ def run_benchmark benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } x.config( **benchmark_time, - suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'profiler_gc') + suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'di_instrument_method') ) # This benchmark should produce identical results to the