Class: PerformanceComparator

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks/performance_comparator.rb

Constant Summary collapse

REPO_ROOT =
File.expand_path(File.join(__dir__, "..", ".."))
DEFAULT_RUN_TIME =
10
DEFAULT_THRESHOLD =

10% (more lenient for complex operations)

0.10
DEFAULT_BASE =
"main"
TMP_PERF_DIR =
File.join(REPO_ROOT, "tmp", "performance")
BENCH_SCRIPT =
File.join(TMP_PERF_DIR, "benchmark_runner.rb")

Instance Method Summary collapse

Instance Method Details

#runObject



13
14
15
16
17
18
# File 'lib/tasks/performance_comparator.rb', line 13

def run
  setup_environment
  run_benchmarks_comparison
ensure
  cleanup
end