Enable oj to AM for fair benchmark test
This commit is contained in:
parent
823d0df1d9
commit
4312d02b60
@ -3,6 +3,7 @@ require 'rspec-benchmark'
|
||||
require 'multi_json'
|
||||
require 'byebug'
|
||||
require 'active_model_serializers'
|
||||
require 'oj'
|
||||
|
||||
Dir[File.dirname(__FILE__) + '/shared/contexts/*.rb'].each {|file| require file }
|
||||
|
||||
@ -13,6 +14,7 @@ RSpec.configure do |config|
|
||||
end
|
||||
end
|
||||
|
||||
Oj.optimize_rails
|
||||
ActiveModel::Serializer.config.adapter = :json_api
|
||||
ActiveModel::Serializer.config.key_transform = :underscore
|
||||
ActiveModelSerializers.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new('/dev/null'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user