added active record benchmark (#1919)

* added active record benchmark

* address bf4's feedbock

* fix spacing
This commit is contained in:
L. Preston Sego III
2016-09-24 16:39:29 -04:00
committed by Lee Richmond
parent 0606b06abd
commit 6ed499f38e
3 changed files with 83 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ module Benchmark
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,
iterations_per_second_standard_deviation: entry.error_percentage,
total_allocated_objects_per_iteration: count_total_allocated_objects(&block)
}.to_json