mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Add rails_version to output
This commit is contained in:
parent
fcd394ab09
commit
1b6094304e
@ -113,6 +113,7 @@ class BenchmarkDriver
|
|||||||
results = {}
|
results = {}
|
||||||
results['commit_hash'] = commit_hash
|
results['commit_hash'] = commit_hash
|
||||||
results['version'] = runs_output.first['version']
|
results['version'] = runs_output.first['version']
|
||||||
|
results['rails_version'] = runs_output.first['rails_version']
|
||||||
results['benchmark_run[environment]'] = environment
|
results['benchmark_run[environment]'] = environment
|
||||||
results['runs'] = []
|
results['runs'] = []
|
||||||
|
|
||||||
|
|||||||
@ -34,6 +34,7 @@ module Benchmark
|
|||||||
output = {
|
output = {
|
||||||
label: label,
|
label: label,
|
||||||
version: ::ActiveModel::Serializer::VERSION.to_s,
|
version: ::ActiveModel::Serializer::VERSION.to_s,
|
||||||
|
rails_version: ::Rails.version.to_s,
|
||||||
iterations_per_second: entry.ips,
|
iterations_per_second: entry.ips,
|
||||||
iterations_per_second_standard_deviation: entry.stddev_percentage,
|
iterations_per_second_standard_deviation: entry.stddev_percentage,
|
||||||
total_allocated_objects_per_iteration: count_total_allocated_objects(&block)
|
total_allocated_objects_per_iteration: count_total_allocated_objects(&block)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user