Merge pull request #1589 from bf4/add_rails_version_to_benchmark

Add rails_version to output
This commit is contained in:
Benjamin Fleischer 2016-03-13 17:28:41 -05:00
commit 093d198bc4
2 changed files with 2 additions and 0 deletions

View File

@ -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'] = []

View File

@ -34,6 +34,7 @@ module Benchmark
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)