Skip to content

Commit

Permalink
Merge pull request rails-api#1589 from bf4/add_rails_version_to_bench…
Browse files Browse the repository at this point in the history
…mark

Add rails_version to output
  • Loading branch information
bf4 committed Mar 13, 2016
2 parents fcd394a + 1b60943 commit 093d198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/bench
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class BenchmarkDriver
results = {}
results['commit_hash'] = commit_hash
results['version'] = runs_output.first['version']
results['rails_version'] = runs_output.first['rails_version']
results['benchmark_run[environment]'] = environment
results['runs'] = []

Expand Down
1 change: 1 addition & 0 deletions test/benchmark/benchmarking_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def ams(label = nil, time:, disable_gc: true, warmup: 3, &block)
output = {
label: label,
version: ::ActiveModel::Serializer::VERSION.to_s,
rails_version: ::Rails.version.to_s,
iterations_per_second: entry.ips,
iterations_per_second_standard_deviation: entry.stddev_percentage,
total_allocated_objects_per_iteration: count_total_allocated_objects(&block)
Expand Down

0 comments on commit 093d198

Please sign in to comment.