Skip to content

Commit 093d198

Browse files
committed
Merge pull request #1589 from bf4/add_rails_version_to_benchmark
Add rails_version to output
2 parents fcd394a + 1b60943 commit 093d198

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/bench

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class BenchmarkDriver
113113
results = {}
114114
results['commit_hash'] = commit_hash
115115
results['version'] = runs_output.first['version']
116+
results['rails_version'] = runs_output.first['rails_version']
116117
results['benchmark_run[environment]'] = environment
117118
results['runs'] = []
118119

test/benchmark/benchmarking_support.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def ams(label = nil, time:, disable_gc: true, warmup: 3, &block)
3434
output = {
3535
label: label,
3636
version: ::ActiveModel::Serializer::VERSION.to_s,
37+
rails_version: ::Rails.version.to_s,
3738
iterations_per_second: entry.ips,
3839
iterations_per_second_standard_deviation: entry.stddev_percentage,
3940
total_allocated_objects_per_iteration: count_total_allocated_objects(&block)

0 commit comments

Comments
 (0)