Class: PerformanceComparator
- Inherits:
-
Object
- Object
- PerformanceComparator
- Defined in:
- lib/tasks/performance_comparator.rb
Constant Summary collapse
- REPO_ROOT =
File.(File.join(__dir__, "..", ".."))
- DEFAULT_RUN_TIME =
seconds
20- DEFAULT_THRESHOLD =
5%
0.05- DEFAULT_BASE =
"main"- TMP_PERF_DIR =
File.join(REPO_ROOT, "tmp", "performance")
- BENCH_SCRIPT =
File.join(TMP_PERF_DIR, "benchmark_runner.rb")
- BENCHMARK_MATRIX =
{ xml: %i[nokogiri ox oga rexml], json: %i[standard_json multi_json oj], yaml: %i[standard_yaml], toml: %i[toml_rb tomlib], }.freeze
- DIRECTIONS =
%i[from to].freeze
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
22 23 24 25 26 27 |
# File 'lib/tasks/performance_comparator.rb', line 22 def run setup_environment run_benchmarks_comparison ensure cleanup end |